Rename a variable in CBF's ConnectBlock()

This commit is contained in:
pedro martelletto 2017-01-12 10:31:19 +00:00 committed by Olaoluwa Osuntokun
parent 620ad5b6fb
commit 05d2fdeb11

View file

@ -108,8 +108,8 @@ func (idx *CBFIndex) ConnectBlock(dbTx database.Tx, block *btcutil.Block, view *
} }
meta := dbTx.Metadata() meta := dbTx.Metadata()
hashIndex := meta.Bucket(cbfIndexKey) index := meta.Bucket(cbfIndexKey)
err = hashIndex.Put(block.Hash().CloneBytes(), filter.Bytes()) err = index.Put(block.Hash().CloneBytes(), filter.Bytes())
if err != nil { if err != nil {
return err return err
} }