mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-29 15:43:41 +02:00
channeldb: check fetchOpenChannel() error
This commit is contained in:
@@ -1410,9 +1410,12 @@ func (c *ChannelStateDB) FetchHistoricalChannel(outPoint *wire.OutPoint) (
|
|||||||
}
|
}
|
||||||
|
|
||||||
channel, err = fetchOpenChannel(chanBucket, outPoint)
|
channel, err = fetchOpenChannel(chanBucket, outPoint)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
channel.Db = c
|
channel.Db = c
|
||||||
return err
|
return nil
|
||||||
}, func() {
|
}, func() {
|
||||||
channel = nil
|
channel = nil
|
||||||
})
|
})
|
||||||
|
@@ -3,7 +3,9 @@
|
|||||||
## Bug Fixes
|
## Bug Fixes
|
||||||
|
|
||||||
* [Fixed an inaccurate log message during a compaction failure](https://github.com/lightningnetwork/lnd/issues/5937)
|
* [Fixed an inaccurate log message during a compaction failure](https://github.com/lightningnetwork/lnd/issues/5937)
|
||||||
|
* [A bug has been fixed in channeldb that uses the return value without checking error](https://github.com/lightningnetwork/lnd/pull/6012)
|
||||||
|
|
||||||
# Contributors (Alphabetical Order)
|
# Contributors (Alphabetical Order)
|
||||||
|
|
||||||
* Jamie Turley
|
* Jamie Turley
|
||||||
|
* nayuta-ueno
|
Reference in New Issue
Block a user