aboutsummaryrefslogtreecommitdiff
path: root/src/bloom.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2014-06-22 20:40:53 +0200
committerPieter Wuille <[email protected]>2014-06-22 20:45:30 +0200
commitd4e4e05435a93a72711120f46ee79482c13fae45 (patch)
treeaeb3e1ba960864e331b647abbfabe2ecb5a90c45 /src/bloom.cpp
parentMerge pull request #4381 (diff)
parentCode simplifications after CTransaction::GetHash() caching (diff)
downloaddiscoin-d4e4e05435a93a72711120f46ee79482c13fae45.tar.xz
discoin-d4e4e05435a93a72711120f46ee79482c13fae45.zip
Merge pull request #4309
d38da59 Code simplifications after CTransaction::GetHash() caching (Pieter Wuille) 4949004 Add CMutableTransaction and make CTransaction immutable. (Pieter Wuille)
Diffstat (limited to 'src/bloom.cpp')
-rw-r--r--src/bloom.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bloom.cpp b/src/bloom.cpp
index 1bfcbd406..26e366179 100644
--- a/src/bloom.cpp
+++ b/src/bloom.cpp
@@ -99,7 +99,7 @@ bool CBloomFilter::IsWithinSizeConstraints() const
return vData.size() <= MAX_BLOOM_FILTER_SIZE && nHashFuncs <= MAX_HASH_FUNCS;
}
-bool CBloomFilter::IsRelevantAndUpdate(const CTransaction& tx, const uint256& hash)
+bool CBloomFilter::IsRelevantAndUpdate(const CTransaction& tx)
{
bool fFound = false;
// Match if the filter contains the hash of tx
@@ -108,6 +108,7 @@ bool CBloomFilter::IsRelevantAndUpdate(const CTransaction& tx, const uint256& ha
return true;
if (isEmpty)
return false;
+ const uint256& hash = tx.GetHash();
if (contains(hash))
fFound = true;