Browse Source

Fixed incorrect height in p2p_sendheaders.py.

Extended sync_blocks timeout to 600 seconds.
cn_mining
Jianping Wu 6 years ago
parent
commit
f5547ae451
  1. 2
      test/functional/p2p_sendheaders.py
  2. 2
      test/functional/test_framework/util.py

2
test/functional/p2p_sendheaders.py

@ -493,7 +493,7 @@ class SendHeadersTest(BitcoinTestFramework):
# Now announce a header that forks the last two blocks # Now announce a header that forks the last two blocks
tip = blocks[0].sha256 tip = blocks[0].sha256
height -= 1 height -= 2
blocks = [] blocks = []
# Create extra blocks for later # Create extra blocks for later

2
test/functional/test_framework/util.py

@ -358,7 +358,7 @@ def connect_nodes_bi(nodes, a, b):
connect_nodes(nodes[a], b) connect_nodes(nodes[a], b)
connect_nodes(nodes[b], a) connect_nodes(nodes[b], a)
def sync_blocks(rpc_connections, *, wait=1, timeout=60): def sync_blocks(rpc_connections, *, wait=1, timeout=600):
""" """
Wait until everybody has the same tip. Wait until everybody has the same tip.

Loading…
Cancel
Save