mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
channeldb: fix typo in AddChannelEdge
This commit is contained in:
parent
a1d584f1b2
commit
5f2f77e873
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user