Page MenuHomePhabricator

test: Fix intermittent failure in wallet_importmulti
ClosedPublic

Authored by PiRK on Jan 20 2021, 17:00.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABCf339a4f6d651: test: Fix intermittent failure in wallet_importmulti
Summary

The wallet is async, so after generating a block, we must call syncwithvalidationinterfacequeue. Otherwise the timestamp will be of the previous block.

getbestblockhash directly accesses the chainstate, so it is not needed there.

This is a backport of Core PR18753

Test Plan

./test/functional/test_runner.py wallet_importmulti

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable