aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2014-06-30 08:35:12 -0400
committerGavin Andresen <gavinandresen@gmail.com>2014-06-30 08:35:12 -0400
commit8ceb28afc3799c765d1fce242d9c9472d5f4024c (patch)
tree39e751cf37191b98e399380e2517873ac1bd62bf /src/test
parent6fba25ef26649359d8e5962555c0d753b6df51b4 (diff)
parent7a19efe04069d9a1e251cdc94b25184f76d9d901 (diff)
Merge pull request #3883 from dgenr8/first_double_spend
Relay and alert user to double spends
Diffstat (limited to 'src/test')
-rw-r--r--src/test/bloom_tests.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/bloom_tests.cpp b/src/test/bloom_tests.cpp
index b56d998be2..5c6c7d8588 100644
--- a/src/test/bloom_tests.cpp
+++ b/src/test/bloom_tests.cpp
@@ -45,6 +45,10 @@ BOOST_AUTO_TEST_CASE(bloom_create_insert_serialize)
expected[i] = (char)vch[i];
BOOST_CHECK_EQUAL_COLLECTIONS(stream.begin(), stream.end(), expected.begin(), expected.end());
+
+ BOOST_CHECK_MESSAGE( filter.contains(ParseHex("99108ad8ed9bb6274d3980bab5a85c048f0950c8")), "BloomFilter doesn't contain just-inserted object!");
+ filter.clear();
+ BOOST_CHECK_MESSAGE( !filter.contains(ParseHex("99108ad8ed9bb6274d3980bab5a85c048f0950c8")), "BloomFilter should be empty!");
}
BOOST_AUTO_TEST_CASE(bloom_create_insert_serialize_with_tweak)