MCPcopy Create free account
hub / github.com/ElementsProject/elements / TestP2PConn

Class TestP2PConn

test/functional/feature_maxuploadtarget.py:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19from test_framework.util import assert_equal, mine_large_block
20
21class TestP2PConn(P2PInterface):
22 def __init__(self):
23 super().__init__()
24 self.block_receive_map = defaultdict(int)
25
26 def on_inv(self, message):
27 pass
28
29 def on_block(self, message):
30 message.block.calc_sha256()
31 self.block_receive_map[message.block.sha256] += 1
32
33class MaxUploadTest(BitcoinTestFramework):
34

Callers 1

run_testMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected