Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mempool-accept-txn.py
Show All 18 Lines | |||||
from test_framework.cdefs import MAX_STANDARD_TX_SIGOPS | from test_framework.cdefs import MAX_STANDARD_TX_SIGOPS | ||||
# Error for too many sigops in one TX | # Error for too many sigops in one TX | ||||
TXNS_TOO_MANY_SIGOPS_ERROR = b'bad-txns-too-many-sigops' | TXNS_TOO_MANY_SIGOPS_ERROR = b'bad-txns-too-many-sigops' | ||||
RPC_TXNS_TOO_MANY_SIGOPS_ERROR = "64: " + \ | RPC_TXNS_TOO_MANY_SIGOPS_ERROR = "64: " + \ | ||||
TXNS_TOO_MANY_SIGOPS_ERROR.decode("utf-8") | TXNS_TOO_MANY_SIGOPS_ERROR.decode("utf-8") | ||||
class PreviousSpendableOutput(object): | class PreviousSpendableOutput(): | ||||
def __init__(self, tx=CTransaction(), n=-1): | def __init__(self, tx=CTransaction(), n=-1): | ||||
self.tx = tx | self.tx = tx | ||||
self.n = n # the output we're spending | self.n = n # the output we're spending | ||||
class FullBlockTest(ComparisonTestFramework): | class FullBlockTest(ComparisonTestFramework): | ||||
▲ Show 20 Lines • Show All 235 Lines • Show Last 20 Lines |