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:
Wladimir J. van der Laan
2013-12-20 17:12:39 +01:00
parent 365350140a
commit 5fe19d640e
2 changed files with 26 additions and 5 deletions

View File

@@ -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 )"
}