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 16
16
from test_framework .test_framework import BitcoinTestFramework
17
17
from test_framework .util import wait_until
18
18
19
- class P2PStoreBlock (P2PInterface ):
20
19
20
+ class P2PStoreBlock (P2PInterface ):
21
21
def __init__ (self ):
22
22
super ().__init__ ()
23
23
self .blocks = defaultdict (int )
@@ -26,6 +26,7 @@ def on_block(self, message):
26
26
message .block .calc_sha256 ()
27
27
self .blocks [message .block .sha256 ] += 1
28
28
29
+
29
30
class GetdataTest (BitcoinTestFramework ):
30
31
def set_test_params (self ):
31
32
self .num_nodes = 1
@@ -47,5 +48,6 @@ def run_test(self):
47
48
self .nodes [0 ].p2ps [0 ].send_and_ping (good_getdata )
48
49
wait_until (lambda : self .nodes [0 ].p2ps [0 ].blocks [best_block ] == 1 , timeout = 30 , lock = mininode_lock )
49
50
51
+
50
52
if __name__ == '__main__' :
51
53
GetdataTest ().main ()
You can’t perform that action at this time.
0 commit comments