Merge pull request #6547 from Crypt-iQ/boltfix_05-22
channeldb: copy value from boltdb's Get instead of using it directly
This commit is contained in:
2 files changed
+7
-2
No files matched your search
+4
-2
@@ -1254,11 +1254,13 @@ func (c *ChannelStateDB) GetChannelOpeningState(outPoint []byte) ([]byte, error)
|
|||||||
return ErrChannelNotFound
|
return ErrChannelNotFound
|
||||||
}
|
}
|
||||||
|
|
||||||
serializedState = bucket.Get(outPoint)
|
stateBytes := bucket.Get(outPoint)
|
||||||
if serializedState == nil {
|
if stateBytes == nil {
|
||||||
return ErrChannelNotFound
|
return ErrChannelNotFound
|
||||||
}
|
}
|
||||||
|
|
||||||
|
serializedState = append(serializedState, stateBytes...)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}, func() {
|
}, func() {
|
||||||
serializedState = nil
|
serializedState = nil
|
||||||
|
|||||||
@@ -169,6 +169,9 @@ from occurring that would result in an erroneous force close.](https://github.co
|
|||||||
* [Taproot wallet inputs can also be used to fund
|
* [Taproot wallet inputs can also be used to fund
|
||||||
channels](https://github.com/lightningnetwork/lnd/pull/6521)
|
channels](https://github.com/lightningnetwork/lnd/pull/6521)
|
||||||
|
|
||||||
|
* [Fixed an intermittent panic that would occur due to a violated assumption with our
|
||||||
|
underlying database.](https://github.com/lightningnetwork/lnd/pull/6547)
|
||||||
|
|
||||||
## Routing
|
## Routing
|
||||||
|
|
||||||
* [Add a new `time_pref` parameter to the QueryRoutes and SendPayment APIs](https://github.com/lightningnetwork/lnd/pull/6024) that
|
* [Add a new `time_pref` parameter to the QueryRoutes and SendPayment APIs](https://github.com/lightningnetwork/lnd/pull/6024) that
|
||||||
|
|||||||
Reference in new issue
Block a user