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
This commit is contained in:
@@ -38,6 +38,12 @@ FastRandomContext insecure_rand_ctx(insecure_rand_seed);
|
||||
extern bool fPrintToConsole;
|
||||
extern void noui_connect();
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const uint256& num)
|
||||
{
|
||||
os << num.ToString();
|
||||
return os;
|
||||
}
|
||||
|
||||
BasicTestingSetup::BasicTestingSetup(const std::string& chainName)
|
||||
{
|
||||
SHA256AutoDetect();
|
||||
|
||||
Reference in New Issue
Block a user