mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-02 00:38:15 +01:00
Use COINBASE_MATURITY constant in functional tests.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
# Test Taproot softfork (BIPs 340-342)
|
||||
|
||||
from test_framework.blocktools import (
|
||||
COINBASE_MATURITY,
|
||||
create_coinbase,
|
||||
create_block,
|
||||
add_witness_commitment,
|
||||
@@ -1440,7 +1441,7 @@ class TaprootTest(BitcoinTestFramework):
|
||||
def run_test(self):
|
||||
# Post-taproot activation tests go first (pre-taproot tests' blocks are invalid post-taproot).
|
||||
self.log.info("Post-activation tests...")
|
||||
self.nodes[1].generate(101)
|
||||
self.nodes[1].generate(COINBASE_MATURITY + 1)
|
||||
self.test_spenders(self.nodes[1], spenders_taproot_active(), input_counts=[1, 2, 2, 2, 2, 3])
|
||||
|
||||
# Re-connect nodes in case they have been disconnected
|
||||
|
||||
Reference in New Issue
Block a user