aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bitcoin.h
diff options
context:
space:
mode:
authorJesse Cohen <jc@jc.lol>2018-04-18 08:01:48 -0400
committerJesse Cohen <jc@jc.lol>2018-05-16 08:28:15 -0400
commitdd435ad40267f5c50ff17533c696f9302829a6a6 (patch)
tree771a3f789f30646df1d0a067b71db619296af144 /src/test/test_bitcoin.h
parenta3ae8e68739023e5dba9e5cb190e707ed4603316 (diff)
downloadbitcoin-dd435ad40267f5c50ff17533c696f9302829a6a6.tar.xz
Add unit tests for signals generated by ProcessNewBlock()
After a recent bug discovered in callback ordering in MainSignals, this test checks invariants in ordering of BlockConnected / BlockDisconnected / UpdatedChainTip signals
Diffstat (limited to 'src/test/test_bitcoin.h')
-rw-r--r--src/test/test_bitcoin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.h b/src/test/test_bitcoin.h
index 1f91eb622c..d013613de2 100644
--- a/src/test/test_bitcoin.h
+++ b/src/test/test_bitcoin.h
@@ -120,4 +120,7 @@ struct TestMemPoolEntryHelper
CBlock getBlock13b8a();
+// define an implicit conversion here so that uint256 may be used directly in BOOST_CHECK_*
+std::ostream& operator<<(std::ostream& os, const uint256& num);
+
#endif