mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 01:04:43 +02:00
ci: Run feature_block and feature_abortnode in valgrind
This commit is contained in:
@@ -14,11 +14,12 @@ from test_framework.test_framework import BitcoinTestFramework
|
||||
from test_framework.util import wait_until, get_datadir_path, connect_nodes
|
||||
import os
|
||||
|
||||
class AbortNodeTest(BitcoinTestFramework):
|
||||
|
||||
class AbortNodeTest(BitcoinTestFramework):
|
||||
def set_test_params(self):
|
||||
self.setup_clean_chain = True
|
||||
self.num_nodes = 2
|
||||
self.rpc_timeout = 240
|
||||
|
||||
def setup_network(self):
|
||||
self.setup_nodes()
|
||||
@@ -44,5 +45,6 @@ class AbortNodeTest(BitcoinTestFramework):
|
||||
self.log.info("Node crashed - now verifying restart fails")
|
||||
self.nodes[0].assert_start_raises_init_error()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
AbortNodeTest().main()
|
||||
|
||||
@@ -1263,7 +1263,7 @@ class FullBlockTest(BitcoinTestFramework):
|
||||
self.save_spendable_output()
|
||||
spend = self.get_spendable_output()
|
||||
|
||||
self.send_blocks(blocks, True, timeout=1920)
|
||||
self.send_blocks(blocks, True, timeout=2440)
|
||||
chain1_tip = i
|
||||
|
||||
# now create alt chain of same length
|
||||
@@ -1275,14 +1275,14 @@ class FullBlockTest(BitcoinTestFramework):
|
||||
|
||||
# extend alt chain to trigger re-org
|
||||
block = self.next_block("alt" + str(chain1_tip + 1), version=4)
|
||||
self.send_blocks([block], True, timeout=1920)
|
||||
self.send_blocks([block], True, timeout=2440)
|
||||
|
||||
# ... and re-org back to the first chain
|
||||
self.move_tip(chain1_tip)
|
||||
block = self.next_block(chain1_tip + 1, version=4)
|
||||
self.send_blocks([block], False, force_send=True)
|
||||
block = self.next_block(chain1_tip + 2, version=4)
|
||||
self.send_blocks([block], True, timeout=1920)
|
||||
self.send_blocks([block], True, timeout=2440)
|
||||
|
||||
self.log.info("Reject a block with an invalid block header version")
|
||||
b_v1 = self.next_block('b_v1', version=1)
|
||||
|
||||
Reference in New Issue
Block a user