channeldb: fix typo in AddChannelEdge

This commit is contained in:
Olaoluwa Osuntokun 2017-01-09 19:02:34 -08:00
parent a1d584f1b2
commit 5f2f77e873
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

View File

@ -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
}