Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-mempool-coherence-on-activations.py
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | sig = private_key.sign(sighash) + \ | ||||
bytes(bytearray([SIGHASH_ALL | SIGHASH_FORKID])) | bytes(bytearray([SIGHASH_ALL | SIGHASH_FORKID])) | ||||
txspend.vin[0].scriptSig = CScript([sig]) | txspend.vin[0].scriptSig = CScript([sig]) | ||||
txspend.rehash() | txspend.rehash() | ||||
return txfund, txspend | return txfund, txspend | ||||
def create_fund_and_pre_fork_only_tx(spend): | def create_fund_and_pre_fork_only_tx(spend): | ||||
return create_fund_and_activation_specific_spending_tx(spend, pre_fork_only=True) | return create_fund_and_activation_specific_spending_tx( | ||||
spend, pre_fork_only=True) | |||||
def create_fund_and_post_fork_only_tx(spend): | def create_fund_and_post_fork_only_tx(spend): | ||||
return create_fund_and_activation_specific_spending_tx(spend, pre_fork_only=False) | return create_fund_and_activation_specific_spending_tx( | ||||
spend, pre_fork_only=False) | |||||
# ---Mempool coherence on activations test--- | # ---Mempool coherence on activations test--- | ||||
class PreviousSpendableOutput(object): | class PreviousSpendableOutput(object): | ||||
def __init__(self, tx=CTransaction(), n=-1): | def __init__(self, tx=CTransaction(), n=-1): | ||||
▲ Show 20 Lines • Show All 255 Lines • Show Last 20 Lines |