Add fullyNotified to getblockchaininfo and use it in tests
This commit is contained in:
@@ -57,8 +57,6 @@ def sync_blocks(rpc_connections, wait=1):
|
|||||||
break
|
break
|
||||||
time.sleep(wait)
|
time.sleep(wait)
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
# Now that the block counts are in sync, wait for the internal
|
# Now that the block counts are in sync, wait for the internal
|
||||||
# notifications to finish
|
# notifications to finish
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
@@ -1335,6 +1335,12 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp, const CPubKey& my
|
|||||||
|
|
||||||
obj.push_back(Pair("pruneheight", block->GetHeight()));
|
obj.push_back(Pair("pruneheight", block->GetHeight()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this helps our tests work correctly
|
||||||
|
if (Params().NetworkIDString() == "regtest") {
|
||||||
|
obj.pushKV("fullyNotified", ChainIsFullyNotified());
|
||||||
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user