mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-27 08:57:26 +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)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
channel.Db = c
|
||||
return err
|
||||
return nil
|
||||
}, func() {
|
||||
channel = nil
|
||||
})
|
||||
|
Reference in New Issue
Block a user