Changeset View
Changeset View
Standalone View
Standalone View
qa/rpc-tests/abc-p2p-activation.py
Show All 13 Lines | |||||
from test_framework.comptool import TestManager, TestInstance, RejectResult | from test_framework.comptool import TestManager, TestInstance, RejectResult | ||||
from test_framework.blocktools import * | from test_framework.blocktools import * | ||||
import time | import time | ||||
from test_framework.key import CECKey | from test_framework.key import CECKey | ||||
from test_framework.script import * | from test_framework.script import * | ||||
from test_framework.cdefs import * | from test_framework.cdefs import * | ||||
# Error for illegal use of SIGHASH_FORKID | # Error for illegal use of SIGHASH_FORKID | ||||
SIGHASH_FORKID_ERROR = b'mandatory-script-verify-flag-failed (Illegal use of SIGHASH_FORKID)' | SIGHASH_FORKID_ERROR = b'non-mandatory-script-verify-flag (Illegal use of SIGHASH_FORKID)' | ||||
RPC_SIGHASH_FORKID_ERROR = "16: " + SIGHASH_FORKID_ERROR.decode("utf-8") | RPC_SIGHASH_FORKID_ERROR = "64: " + SIGHASH_FORKID_ERROR.decode("utf-8") | ||||
SIGHASH_INVALID_ERROR = b'mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack e' | SIGHASH_INVALID_ERROR = b'mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack e' | ||||
# far into the future | # far into the future | ||||
UAHF_START_TIME = 2000000000 | UAHF_START_TIME = 2000000000 | ||||
class PreviousSpendableOutput(object): | class PreviousSpendableOutput(object): | ||||
def __init__(self, tx = CTransaction(), n = -1): | def __init__(self, tx = CTransaction(), n = -1): | ||||
self.tx = tx | self.tx = tx | ||||
▲ Show 20 Lines • Show All 338 Lines • Show Last 20 Lines |