From 5f2f77e8736c497565cfc1ea1d94f67e248c7e1a Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 9 Jan 2017 19:02:34 -0800 Subject: [PATCH] channeldb: fix typo in AddChannelEdge --- channeldb/graph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channeldb/graph.go b/channeldb/graph.go index ed30be0b2..36454c857 100644 --- a/channeldb/graph.go +++ b/channeldb/graph.go @@ -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 }