Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p-fullblocktest.py
Show All 9 Lines | |||||
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 * | ||||
import struct | import struct | ||||
from test_framework.cdefs import LEGACY_MAX_BLOCK_SIZE, MAX_BLOCK_SIGOPS_PER_MB | from test_framework.cdefs import LEGACY_MAX_BLOCK_SIZE, MAX_BLOCK_SIGOPS_PER_MB | ||||
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 | ||||
''' | ''' | ||||
This reimplements tests from the bitcoinj/FullBlockTestGenerator used | This reimplements tests from the bitcoinj/FullBlockTestGenerator used | ||||
by the pull-tester. | by the pull-tester. | ||||
▲ Show 20 Lines • Show All 1,291 Lines • Show Last 20 Lines |