mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-27 03:11:45 +02:00
Merge #16551: test: Test that low difficulty chain fork is rejected
333317ce6b
test: Test that low difficulty chain fork is rejected (MarcoFalke)fa31dc1bf4
test: Pass down correct chain name in tests (MarcoFalke) Pull request description: To prevent OOM, Bitcoin Core will reject chain forks at low difficulty by default. This is the only use-case of checkpoints, so add a test for it to make sure the feature works as expected. If it didn't work, checkpoints would have no use-case and we might as well remove them ACKs for top commit: Sjors: Thanks for adding the node 1 example. Code review ACK333317c
Tree-SHA512: 90dffa540d0904f3cffb61d2382b1a26f84fe9560b7013e4461546383add31a8757b350616a6d43217c59ef7b8b2a1b62bb3bab582c679cbb2c660a782ce7be1
This commit is contained in:
@@ -489,7 +489,7 @@ class TestNode():
|
||||
if 'dstaddr' not in kwargs:
|
||||
kwargs['dstaddr'] = '127.0.0.1'
|
||||
|
||||
p2p_conn.peer_connect(**kwargs)()
|
||||
p2p_conn.peer_connect(**kwargs, net=self.chain)()
|
||||
self.p2ps.append(p2p_conn)
|
||||
if wait_for_verack:
|
||||
p2p_conn.wait_for_verack()
|
||||
|
Reference in New Issue
Block a user