mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 18:51:15 +02:00
test: Remove unused p2p_lock in VersionBitsWarningTest
This commit is contained in:
@ -12,7 +12,7 @@ import re
|
|||||||
|
|
||||||
from test_framework.blocktools import create_block, create_coinbase
|
from test_framework.blocktools import create_block, create_coinbase
|
||||||
from test_framework.messages import msg_block
|
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
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
|
|
||||||
VB_PERIOD = 144 # versionbits period length for regtest
|
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
|
# Generating one block guarantees that we'll get out of IBD
|
||||||
node.generatetoaddress(1, node_deterministic_address)
|
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.
|
# Generating one more block will be enough to generate an error.
|
||||||
node.generatetoaddress(1, node_deterministic_address)
|
node.generatetoaddress(1, node_deterministic_address)
|
||||||
# Check that get*info() shows the versionbits unknown rules warning
|
# Check that get*info() shows the versionbits unknown rules warning
|
||||||
|
Reference in New Issue
Block a user