"Backup from the snapshot height can be loaded during background sync"
)
n1.restorewallet("w", "backup_w.dat")
# Balance of w wallet is still still 0 because n1 has not synced yet
assert_equal(n1.getbalance(), 0)
self.log.info(
"Backup from before the snapshot height can't be loaded during background sync"
)
assert_raises_rpc_error(
-4,
"Wallet loading failed. Error loading wallet. Wallet requires blocks to be downloaded, and software does not currently support loading wallets while blocks are being downloaded out of order when using assumeutxo snapshots. Wallet should be able to load successfully after node sync reaches height 299",
"Test that rescanning blocks from before the snapshot fails when blocks are not available from the background sync yet"
)
w1 = n1.get_wallet_rpc(wallet_name)
assert_raises_rpc_error(
-1,
"Failed to rescan unavailable blocks likely due to an in-progress assumeutxo background sync. Check logs or getchainstates RPC for assumeutxo background sync progress and try again later.",
w1.rescanblockchain,
100,
)
PAUSE_HEIGHT = FINAL_HEIGHT - 40
self.log.info("Restarting node to stop at height %d", PAUSE_HEIGHT)
-
- # FIXME This is triggering the address sanitizer, it needs to be