aboutsummaryrefslogtreecommitdiff
path: root/src/bloom.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2012-08-13 05:26:30 +0200
committerMatt Corallo <[email protected]>2013-01-16 12:48:02 -0500
commit269d9c6492dc275650d2137d53f4afdca88e3216 (patch)
tree32ded97569c406479d8393eda9163f3ba488b7b9 /src/bloom.cpp
parentAdd a filter field in CNode, add filterload+filteradd+filterclear (diff)
downloaddiscoin-269d9c6492dc275650d2137d53f4afdca88e3216.tar.xz
discoin-269d9c6492dc275650d2137d53f4afdca88e3216.zip
Replace RelayMessage with RelayTransaction.
Diffstat (limited to 'src/bloom.cpp')
-rw-r--r--src/bloom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bloom.cpp b/src/bloom.cpp
index 5fac1d06a..73b04aa3d 100644
--- a/src/bloom.cpp
+++ b/src/bloom.cpp
@@ -88,11 +88,11 @@ bool CBloomFilter::IsWithinSizeConstraints() const
return vData.size() <= MAX_BLOOM_FILTER_SIZE && nHashFuncs <= MAX_HASH_FUNCS;
}
-bool CBloomFilter::IsTransactionRelevantToFilter(const CTransaction& tx) const
+bool CBloomFilter::IsTransactionRelevantToFilter(const CTransaction& tx, const uint256& hash) const
{
// Match if the filter contains the hash of tx
// for finding tx when they appear in a block
- if (contains(tx.GetHash()))
+ if (contains(hash))
return true;
BOOST_FOREACH(const CTxOut& txout, tx.vout)