mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Rename NOP3 to CHECSEQUENCEVERIFY in rpc tests
This commit is contained in:
parent
14d01309be
commit
18c975c831
@ -173,7 +173,7 @@ class BIP68_112_113Test(ComparisonTestFramework):
|
|||||||
tx = self.create_transaction(self.nodes[0], input, self.nodeaddress, Decimal("49.98"))
|
tx = self.create_transaction(self.nodes[0], input, self.nodeaddress, Decimal("49.98"))
|
||||||
tx.nVersion = txversion
|
tx.nVersion = txversion
|
||||||
signtx = self.sign_transaction(self.nodes[0], tx)
|
signtx = self.sign_transaction(self.nodes[0], tx)
|
||||||
signtx.vin[0].scriptSig = CScript([-1, OP_NOP3, OP_DROP] + list(CScript(signtx.vin[0].scriptSig)))
|
signtx.vin[0].scriptSig = CScript([-1, OP_CHECKSEQUENCEVERIFY, OP_DROP] + list(CScript(signtx.vin[0].scriptSig)))
|
||||||
return signtx
|
return signtx
|
||||||
|
|
||||||
def create_bip112txs(self, bip112inputs, varyOP_CSV, txversion, locktime_delta = 0):
|
def create_bip112txs(self, bip112inputs, varyOP_CSV, txversion, locktime_delta = 0):
|
||||||
@ -196,9 +196,9 @@ class BIP68_112_113Test(ComparisonTestFramework):
|
|||||||
tx.nVersion = txversion
|
tx.nVersion = txversion
|
||||||
signtx = self.sign_transaction(self.nodes[0], tx)
|
signtx = self.sign_transaction(self.nodes[0], tx)
|
||||||
if (varyOP_CSV):
|
if (varyOP_CSV):
|
||||||
signtx.vin[0].scriptSig = CScript([relative_locktimes[b31][b25][b22][b18], OP_NOP3, OP_DROP] + list(CScript(signtx.vin[0].scriptSig)))
|
signtx.vin[0].scriptSig = CScript([relative_locktimes[b31][b25][b22][b18], OP_CHECKSEQUENCEVERIFY, OP_DROP] + list(CScript(signtx.vin[0].scriptSig)))
|
||||||
else:
|
else:
|
||||||
signtx.vin[0].scriptSig = CScript([base_relative_locktime, OP_NOP3, OP_DROP] + list(CScript(signtx.vin[0].scriptSig)))
|
signtx.vin[0].scriptSig = CScript([base_relative_locktime, OP_CHECKSEQUENCEVERIFY, OP_DROP] + list(CScript(signtx.vin[0].scriptSig)))
|
||||||
b18txs.append(signtx)
|
b18txs.append(signtx)
|
||||||
b22txs.append(b18txs)
|
b22txs.append(b18txs)
|
||||||
b25txs.append(b22txs)
|
b25txs.append(b22txs)
|
||||||
|
@ -9,7 +9,7 @@ from test_framework.util import *
|
|||||||
from test_framework.mininode import CTransaction, NetworkThread
|
from test_framework.mininode import CTransaction, NetworkThread
|
||||||
from test_framework.blocktools import create_coinbase, create_block
|
from test_framework.blocktools import create_coinbase, create_block
|
||||||
from test_framework.comptool import TestInstance, TestManager
|
from test_framework.comptool import TestInstance, TestManager
|
||||||
from test_framework.script import CScript, OP_1NEGATE, OP_NOP3, OP_DROP
|
from test_framework.script import CScript, OP_1NEGATE, OP_CHECKSEQUENCEVERIFY, OP_DROP
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
import time
|
import time
|
||||||
import itertools
|
import itertools
|
||||||
@ -220,7 +220,7 @@ class BIP9SoftForksTest(ComparisonTestFramework):
|
|||||||
'''Modify the signature in vin 0 of the tx to fail CSV
|
'''Modify the signature in vin 0 of the tx to fail CSV
|
||||||
Prepends -1 CSV DROP in the scriptSig itself.
|
Prepends -1 CSV DROP in the scriptSig itself.
|
||||||
'''
|
'''
|
||||||
tx.vin[0].scriptSig = CScript([OP_1NEGATE, OP_NOP3, OP_DROP] +
|
tx.vin[0].scriptSig = CScript([OP_1NEGATE, OP_CHECKSEQUENCEVERIFY, OP_DROP] +
|
||||||
list(CScript(tx.vin[0].scriptSig)))
|
list(CScript(tx.vin[0].scriptSig)))
|
||||||
|
|
||||||
def sequence_lock_invalidate(self, tx):
|
def sequence_lock_invalidate(self, tx):
|
||||||
|
Loading…
Reference in New Issue
Block a user