Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-segwit-recovery.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2019 The Bitcoin developers | # Copyright (c) 2019 The Bitcoin 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. | ||||
""" | """ | ||||
This test checks that blocks containing segwit recovery transactions will be accepted, | This test checks that blocks containing segwit recovery transactions will be accepted, | ||||
that segwit recovery transactions are rejected from mempool acceptance (even with | that segwit recovery transactions are rejected from mempool acceptance (even with | ||||
-acceptnonstdtxn=1), and that segwit recovery transactions don't result in bans. | -acceptnonstdtxn=1), and that segwit recovery transactions don't result in bans. | ||||
""" | """ | ||||
import time | import time | ||||
from test_framework.blocktools import ( | from test_framework.blocktools import ( | ||||
create_block, | create_block, | ||||
create_coinbase, | create_coinbase, | ||||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |