Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_dersig.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2015-2019 The Bitcoin Core developers | # Copyright (c) 2015-2019 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
"""Test BIP66 (DER SIG). | """Test BIP66 (DER SIG). | ||||
Test that the DERSIG soft-fork activates at (regtest) height 1251. | Test that the DERSIG soft-fork activates at (regtest) height 1251. | ||||
""" | """ | ||||
from test_framework.blocktools import create_block, create_coinbase, create_transaction | from test_framework.blocktools import ( | ||||
create_block, | |||||
create_coinbase, | |||||
create_transaction, | |||||
) | |||||
from test_framework.messages import msg_block | from test_framework.messages import msg_block | ||||
from test_framework.p2p import P2PInterface | from test_framework.p2p import P2PInterface | ||||
from test_framework.script import CScript | from test_framework.script import CScript | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_equal | from test_framework.util import assert_equal | ||||
DERSIG_HEIGHT = 1251 | DERSIG_HEIGHT = 1251 | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |