Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_assumevalid.py
Show All 36 Lines | from test_framework.messages import ( | ||||
CBlockHeader, | CBlockHeader, | ||||
COutPoint, | COutPoint, | ||||
CTransaction, | CTransaction, | ||||
CTxIn, | CTxIn, | ||||
CTxOut, | CTxOut, | ||||
msg_block, | msg_block, | ||||
msg_headers, | msg_headers, | ||||
) | ) | ||||
from test_framework.mininode import P2PInterface | from test_framework.p2p import P2PInterface | ||||
from test_framework.script import (CScript, OP_TRUE) | from test_framework.script import (CScript, 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_equal | from test_framework.util import assert_equal | ||||
class BaseNode(P2PInterface): | class BaseNode(P2PInterface): | ||||
def send_header_for_blocks(self, new_blocks): | def send_header_for_blocks(self, new_blocks): | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |