Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115469
D8897.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D8897.diff
View Options
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py
--- a/test/functional/test_framework/util.py
+++ b/test/functional/test_framework/util.py
@@ -469,6 +469,8 @@
best_hash = [x.getbestblockhash() for x in rpc_connections]
if best_hash.count(best_hash[0]) == len(rpc_connections):
return
+ # Check that each peer has at least one connection
+ assert (all([len(x.getpeerinfo()) for x in rpc_connections]))
time.sleep(wait)
raise AssertionError("Block sync timed out:{}".format(
"".join("\n {!r}".format(b) for b in best_hash)))
@@ -488,6 +490,8 @@
for r in rpc_connections:
r.syncwithvalidationinterfacequeue()
return
+ # Check that each peer has at least one connection
+ assert (all([len(x.getpeerinfo()) for x in rpc_connections]))
time.sleep(wait)
raise AssertionError("Mempool sync timed out:{}".format(
"".join("\n {!r}".format(m) for m in pool)))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 11:09 (19 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187520
Default Alt Text
D8897.diff (1 KB)
Attached To
D8897: test: check that peer is connected when calling sync_*
Event Timeline
Log In to Comment