HomePhabricator

test: Fix intermittent failure in wallet_importmulti

Description

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

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D8991

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Jan 21 2021, 07:41
PiRKCommitted on Jan 21 2021, 07:42
abc-botPushed on Jan 21 2021, 07:46
Reviewer
Restricted Project
Differential Revision
D8991: test: Fix intermittent failure in wallet_importmulti
Parents
rABC438dca9e5035: test: use zero-argument super() shortcut (Python 3.0+)
Branches
Unknown
Tags
Unknown