mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-20 05:54:34 +01:00
channeldb: check chanIndex bucket for nilness instead of edges
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
90d13cf70c
commit
8693e8babc
@@ -734,7 +734,7 @@ func (c *ChannelGraph) ChannelID(chanPoint *wire.OutPoint) (uint64, error) {
|
||||
return ErrGraphNoEdgesFound
|
||||
}
|
||||
chanIndex := edges.Bucket(channelPointBucket)
|
||||
if edges == nil {
|
||||
if chanIndex == nil {
|
||||
return ErrGraphNoEdgesFound
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user