File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1616from test_framework .test_framework import BitcoinTestFramework
1717from test_framework .util import wait_until
1818
19- class P2PStoreBlock (P2PInterface ):
2019
20+ class P2PStoreBlock (P2PInterface ):
2121 def __init__ (self ):
2222 super ().__init__ ()
2323 self .blocks = defaultdict (int )
@@ -26,6 +26,7 @@ def on_block(self, message):
2626 message .block .calc_sha256 ()
2727 self .blocks [message .block .sha256 ] += 1
2828
29+
2930class GetdataTest (BitcoinTestFramework ):
3031 def set_test_params (self ):
3132 self .num_nodes = 1
@@ -47,5 +48,6 @@ def run_test(self):
4748 self .nodes [0 ].p2ps [0 ].send_and_ping (good_getdata )
4849 wait_until (lambda : self .nodes [0 ].p2ps [0 ].blocks [best_block ] == 1 , timeout = 30 , lock = mininode_lock )
4950
51+
5052if __name__ == '__main__' :
5153 GetdataTest ().main ()
You can’t perform that action at this time.
0 commit comments