diff options
| author | Jesse Cohen <[email protected]> | 2018-04-18 08:01:48 -0400 |
|---|---|---|
| committer | Jesse Cohen <[email protected]> | 2018-05-16 08:28:15 -0400 |
| commit | dd435ad40267f5c50ff17533c696f9302829a6a6 (patch) | |
| tree | 771a3f789f30646df1d0a067b71db619296af144 /src/test/test_bitcoin.h | |
| parent | Fix concurrency-related bugs in ActivateBestChain (diff) | |
| download | discoin-dd435ad40267f5c50ff17533c696f9302829a6a6.tar.xz discoin-dd435ad40267f5c50ff17533c696f9302829a6a6.zip | |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.h b/src/test/test_bitcoin.h index 1f91eb622..d013613de 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 |