mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
qt: make wallet test consistent
Add a function `WaitBlocks` to wait for blocks to propagate to all three nodes, and use this instead of waiting a fixed time of one second. Fixes #3445.
This commit is contained in:
@@ -82,3 +82,9 @@ function CreateTxn1 {
|
||||
function SendRawTxn {
|
||||
$CLI $1 sendrawtransaction $2
|
||||
}
|
||||
|
||||
# Use: GetBlocks <datadir>
|
||||
# returns number of blocks from getinfo
|
||||
function GetBlocks {
|
||||
ExtractKey blocks "$( $CLI $1 getinfo )"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user