channeldb: fix typo in AddChannelEdge
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -403,7 +403,7 @@ func (c *ChannelGraph) AddChannelEdge(from, to *btcec.PublicKey,
|
||||
// First, attempt to check if this edge has already been
|
||||
// created. If so, then we can exit early as this method is
|
||||
// meant to be idempotent.
|
||||
if edgeInfo := edgeIndex.Get(chanIDKey[:]); edgeInfo != nil {
|
||||
if edgeInfo := edgeIndex.Get(chanKey[:]); edgeInfo != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user