tests: Call reservebalance to trigger WakeThreadStakeMiner

Node 0 needs a short advantage to stake the first few blocks to avoid prevout-not-found errors.
This commit is contained in:
tecnovert
2022-11-21 13:04:11 +02:00
parent 47c1237f6d
commit 7bc411eb98
5 changed files with 8 additions and 0 deletions

View File

@@ -395,6 +395,7 @@ class BaseTest(unittest.TestCase):
rpc('extkeyimportmaster', [rpc('mnemonic', ['new'])['master']])
# Lower output split threshold for more stakeable outputs
rpc('walletsettings', ['stakingoptions', {'stakecombinethreshold': 100, 'stakesplitthreshold': 200}])
rpc('reservebalance', [False])
for i in range(NUM_BTC_NODES):
if not cls.restore_instance: