forked from CoinBlack/blackcoin-more
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Remove BIP34, BIP65, BIP66, DERSIG and CLTV deployments
- Loading branch information
Showing
4 changed files
with
6 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,21 +84,16 @@ class BIP65Test(BitcoinTestFramework): | |
def set_test_params(self): | ||
self.num_nodes = 1 | ||
self.extra_args = [[ | ||
f'-testactivationheight=cltv@{CLTV_HEIGHT}', | ||
'[email protected]', | ||
f'[email protected]', | ||
'-par=1', # Use only one script thread to get the exact reject reason for testing | ||
'-acceptnonstdtxn=1', # cltv_invalidate is nonstandard | ||
]] | ||
self.setup_clean_chain = True | ||
self.rpc_timeout = 480 | ||
|
||
def test_cltv_info(self, *, is_active): | ||
assert_equal(self.nodes[0].getdeploymentinfo()['deployments']['bip65'], { | ||
"active": is_active, | ||
"height": CLTV_HEIGHT, | ||
"type": "buried", | ||
}, | ||
) | ||
# Blackcoin: assume that CLTV is always active | ||
pass | ||
|
||
def run_test(self): | ||
peer = self.nodes[0].add_p2p_connection(P2PInterface()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,8 +48,7 @@ class BIP66Test(BitcoinTestFramework): | |
def set_test_params(self): | ||
self.num_nodes = 1 | ||
self.extra_args = [[ | ||
f'-testactivationheight=dersig@{DERSIG_HEIGHT}', | ||
'[email protected]', | ||
f'[email protected]', | ||
'-par=1', # Use only one script thread to get the exact log msg for testing | ||
]] | ||
self.setup_clean_chain = True | ||
|
@@ -60,13 +59,8 @@ def create_tx(self, input_txid): | |
return self.miniwallet.create_self_transfer(utxo_to_spend=utxo_to_spend)['tx'] | ||
|
||
def test_dersig_info(self, *, is_active): | ||
assert_equal(self.nodes[0].getdeploymentinfo()['deployments']['bip66'], | ||
{ | ||
"active": is_active, | ||
"height": DERSIG_HEIGHT, | ||
"type": "buried", | ||
}, | ||
) | ||
# Blackcoin: assume that DERSIG is always active | ||
pass | ||
|
||
def run_test(self): | ||
peer = self.nodes[0].add_p2p_connection(P2PInterface()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters