From c78a7129bfa27de782381ea687eeb3b24e317552 Mon Sep 17 00:00:00 2001 From: "shuai.qi" Date: Tue, 2 Jul 2019 16:46:07 +0800 Subject: [PATCH] Fix typo --- bloom/filter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bloom/filter.go b/bloom/filter.go index f7cee61..b3379ec 100644 --- a/bloom/filter.go +++ b/bloom/filter.go @@ -113,7 +113,7 @@ func (bf *Filter) Unload() { } // hash returns the bit offset in the bloom filter which corresponds to the -// passed data for the given indepedent hash function number. +// passed data for the given independent hash function number. func (bf *Filter) hash(hashNum uint32, data []byte) uint32 { // bitcoind: 0xfba4c795 chosen as it guarantees a reasonable bit // difference between hashNum values. @@ -309,7 +309,7 @@ func (bf *Filter) matchTxAndUpdate(tx *btcutil.Tx) bool { // public key scripts of its outputs matched. // Check if the filter matches any outpoints this transaction spends or - // any any data elements in the signature scripts of any of the inputs. + // any data elements in the signature scripts of any of the inputs. for _, txin := range tx.MsgTx().TxIn { if bf.matchesOutPoint(&txin.PreviousOutPoint) { return true