Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_csv_activation.py
Show All 34 Lines | |||||
BIP 112: | BIP 112: | ||||
bip112txs_vary_nSequence - 16 txs with nSequence relative_locktimes of 10 evaluated against 10 OP_CSV OP_DROP | bip112txs_vary_nSequence - 16 txs with nSequence relative_locktimes of 10 evaluated against 10 OP_CSV OP_DROP | ||||
bip112txs_vary_nSequence_9 - 16 txs with nSequence relative_locktimes of 9 evaluated against 10 OP_CSV OP_DROP | bip112txs_vary_nSequence_9 - 16 txs with nSequence relative_locktimes of 9 evaluated against 10 OP_CSV OP_DROP | ||||
bip112txs_vary_OP_CSV - 16 txs with nSequence = 10 evaluated against varying {relative_locktimes of 10} OP_CSV OP_DROP | bip112txs_vary_OP_CSV - 16 txs with nSequence = 10 evaluated against varying {relative_locktimes of 10} OP_CSV OP_DROP | ||||
bip112txs_vary_OP_CSV_9 - 16 txs with nSequence = 9 evaluated against varying {relative_locktimes of 10} OP_CSV OP_DROP | bip112txs_vary_OP_CSV_9 - 16 txs with nSequence = 9 evaluated against varying {relative_locktimes of 10} OP_CSV OP_DROP | ||||
bip112tx_special - test negative argument to OP_CSV | bip112tx_special - test negative argument to OP_CSV | ||||
""" | """ | ||||
import time | |||||
from decimal import Decimal | from decimal import Decimal | ||||
from itertools import product | from itertools import product | ||||
import time | |||||
from test_framework.blocktools import ( | from test_framework.blocktools import ( | ||||
create_block, | create_block, | ||||
create_coinbase, | create_coinbase, | ||||
make_conform_to_ctor, | make_conform_to_ctor, | ||||
) | ) | ||||
from test_framework.messages import XEC, CTransaction, FromHex, ToHex | from test_framework.messages import XEC, CTransaction, FromHex, ToHex | ||||
from test_framework.p2p import P2PDataStore | from test_framework.p2p import P2PDataStore | ||||
from test_framework.script import ( | from test_framework.script import ( | ||||
CScript, | |||||
OP_CHECKSEQUENCEVERIFY, | OP_CHECKSEQUENCEVERIFY, | ||||
OP_DROP, | OP_DROP, | ||||
OP_TRUE, | OP_TRUE, | ||||
CScript, | |||||
) | ) | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.txtools import pad_tx | from test_framework.txtools import pad_tx | ||||
from test_framework.util import assert_equal | from test_framework.util import assert_equal | ||||
BASE_RELATIVE_LOCKTIME = 10 | BASE_RELATIVE_LOCKTIME = 10 | ||||
SEQ_DISABLE_FLAG = 1 << 31 | SEQ_DISABLE_FLAG = 1 << 31 | ||||
SEQ_RANDOM_HIGH_BIT = 1 << 25 | SEQ_RANDOM_HIGH_BIT = 1 << 25 | ||||
▲ Show 20 Lines • Show All 611 Lines • Show Last 20 Lines |