Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-minimaldata.py
Show All 21 Lines | from test_framework.messages import ( | ||||
CBlock, | CBlock, | ||||
COutPoint, | COutPoint, | ||||
CTransaction, | CTransaction, | ||||
CTxIn, | CTxIn, | ||||
CTxOut, | CTxOut, | ||||
FromHex, | FromHex, | ||||
ToHex, | ToHex, | ||||
) | ) | ||||
from test_framework.p2p import ( | from test_framework.p2p import P2PDataStore | ||||
P2PDataStore, | from test_framework.script import OP_ADD, OP_TRUE, CScript | ||||
) | |||||
from test_framework.script import ( | |||||
CScript, | |||||
OP_ADD, | |||||
OP_TRUE, | |||||
) | |||||
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_raises_rpc_error | from test_framework.util import assert_raises_rpc_error | ||||
# Minimal push violations in mempool are rejected with a bannable error. | # Minimal push violations in mempool are rejected with a bannable error. | ||||
MINIMALPUSH_ERROR = 'mandatory-script-verify-flag-failed (Data push larger than necessary)' | MINIMALPUSH_ERROR = 'mandatory-script-verify-flag-failed (Data push larger than necessary)' | ||||
# Blocks with invalid scripts give this error: | # Blocks with invalid scripts give this error: | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |