diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-01-29 16:22:19 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-01-30 18:09:58 +0100 |
commit | faa30a4c566c5b720c7994c55f276352a119129f (patch) | |
tree | 8afccde607fede184926dc27c7c086bb16c062b7 /contrib/devtools | |
parent | cad2df24b396be403f13f372ec48ea14a90d7f06 (diff) | |
download | bitcoin-faa30a4c566c5b720c7994c55f276352a119129f.tar.xz |
rpc: Do not wait for headers inside loadtxoutset
Diffstat (limited to 'contrib/devtools')
-rwxr-xr-x | contrib/devtools/test_utxo_snapshots.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/devtools/test_utxo_snapshots.sh b/contrib/devtools/test_utxo_snapshots.sh index 93a4cd1683..d7c019f4a6 100755 --- a/contrib/devtools/test_utxo_snapshots.sh +++ b/contrib/devtools/test_utxo_snapshots.sh @@ -183,8 +183,8 @@ echo "-- Initial state of the client:" client_rpc getchainstates echo -echo "-- Loading UTXO snapshot into client..." -client_rpc loadtxoutset "$UTXO_DAT_FILE" +echo "-- Loading UTXO snapshot into client. Calling RPC in a loop..." +while ! client_rpc loadtxoutset "$UTXO_DAT_FILE" ; do sleep 10; done watch -n 0.3 "( tail -n 14 $CLIENT_DATADIR/debug.log ; echo ; ./src/bitcoin-cli -rpcport=$CLIENT_RPC_PORT -datadir=$CLIENT_DATADIR getchainstates) | cat" |