From 63762f6e211ca223f46c85c9e9859844b104e5ae Mon Sep 17 00:00:00 2001 From: Andrew Toth Date: Wed, 8 Jun 2022 09:28:35 -0400 Subject: [PATCH 1/2] tests: Create legacy wallet for integration env setup --- scripts/setup-env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/setup-env.sh b/scripts/setup-env.sh index 68fc6cd..f0a31b6 100755 --- a/scripts/setup-env.sh +++ b/scripts/setup-env.sh @@ -80,8 +80,8 @@ echo - Waiting for bitcoind to warm up... btc -rpcwait getblockchaininfo > /dev/null echo - Creating wallets... -btc createwallet internal > /dev/null -btc createwallet bwt true true > /dev/null +btc createwallet internal false false "" false false > /dev/null +btc createwallet bwt true true "" false false > /dev/null echo - Generating some blocks... btc generatetoaddress 110 `btc getnewaddress` > /dev/null From b25f5a65a439b7097d18d27d82f5c84de9c76162 Mon Sep 17 00:00:00 2001 From: Andrew Toth Date: Wed, 8 Jun 2022 09:28:47 -0400 Subject: [PATCH 2/2] tests: Fix history test broken by electrum >4.1.0 --- test/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests.sh b/test/tests.sh index 4623c11..962ba92 100755 --- a/test/tests.sh +++ b/test/tests.sh @@ -36,7 +36,7 @@ if [[ $FEATURES == *"electrum"* ]]; then test `jq -r '.transactions | length' <<< "$hist"` == 2 test `jq -r .transactions[0].confirmations <<< "$hist"` == 1 test `jq -r .transactions[1].confirmations <<< "$hist"` == 0 - test `jq -r .summary.end_balance <<< "$hist"` == 6.912 + test `jq -r .summary.end.BTC_balance <<< "$hist"` == 6.912 test `jq -r .transactions[0].bc_value <<< "$hist" | cut -d' ' -f1` == 1.234 echo - Testing listunspent