From 05d2fdeb11609c788144bbb6e5eaf58c503ac806 Mon Sep 17 00:00:00 2001 From: pedro martelletto Date: Thu, 12 Jan 2017 10:31:19 +0000 Subject: [PATCH] Rename a variable in CBF's ConnectBlock() --- blockchain/indexers/cbfindex.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blockchain/indexers/cbfindex.go b/blockchain/indexers/cbfindex.go index f892de87..001d1148 100644 --- a/blockchain/indexers/cbfindex.go +++ b/blockchain/indexers/cbfindex.go @@ -108,8 +108,8 @@ func (idx *CBFIndex) ConnectBlock(dbTx database.Tx, block *btcutil.Block, view * } meta := dbTx.Metadata() - hashIndex := meta.Bucket(cbfIndexKey) - err = hashIndex.Put(block.Hash().CloneBytes(), filter.Bytes()) + index := meta.Bucket(cbfIndexKey) + err = index.Put(block.Hash().CloneBytes(), filter.Bytes()) if err != nil { return err }