We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b151e3 commit faede1bCopy full SHA for faede1b
test/functional/test_framework/test_node.py
@@ -233,6 +233,10 @@ def wait_for_rpc_connection(self):
233
# -342 Service unavailable, RPC server started but is shutting down due to error
234
if e.error['code'] != -28 and e.error['code'] != -342:
235
raise # unknown JSON RPC exception
236
+ except ConnectionResetError:
237
+ # This might happen when the RPC server is in warmup, but shut down before the call to getblockcount
238
+ # succeeds. Try again to properly raise the FailedToStartError
239
+ pass
240
except ValueError as e: # cookie file not found and no rpcuser or rpcassword. bitcoind still starting
241
if "No RPC credentials" not in str(e):
242
raise
0 commit comments