mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
test: Remove unused p2p_lock in VersionBitsWarningTest
This commit is contained in:
parent
28f4e53e16
commit
facb41bf1d
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ import re
|
|||
|
||||
from test_framework.blocktools import create_block, create_coinbase
|
||||
from test_framework.messages import msg_block
|
||||
from test_framework.p2p import p2p_lock, P2PInterface
|
||||
from test_framework.p2p import P2PInterface
|
||||
from test_framework.test_framework import BitcoinTestFramework
|
||||
|
||||
VB_PERIOD = 144 # versionbits period length for regtest
|
||||
|
@ -90,7 +90,7 @@ class VersionBitsWarningTest(BitcoinTestFramework):
|
|||
|
||||
# Generating one block guarantees that we'll get out of IBD
|
||||
node.generatetoaddress(1, node_deterministic_address)
|
||||
self.wait_until(lambda: not node.getblockchaininfo()['initialblockdownload'], timeout=10, lock=p2p_lock)
|
||||
self.wait_until(lambda: not node.getblockchaininfo()['initialblockdownload'])
|
||||
# Generating one more block will be enough to generate an error.
|
||||
node.generatetoaddress(1, node_deterministic_address)
|
||||
# Check that get*info() shows the versionbits unknown rules warning
|
||||
|
|
Loading…
Add table
Reference in a new issue