From 7b4c46f0cc1f041597bf080509d4bf51cfac7ef7 Mon Sep 17 00:00:00 2001 From: Alfonso de la Rocha Date: Tue, 11 Jul 2023 09:41:33 +0200 Subject: [PATCH] increase timeout to support mainnet/calibration --- src/jsonrpc/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jsonrpc/mod.rs b/src/jsonrpc/mod.rs index 6dcfb049..abca3884 100644 --- a/src/jsonrpc/mod.rs +++ b/src/jsonrpc/mod.rs @@ -25,7 +25,9 @@ mod tests; const DEFAULT_JSON_RPC_VERSION: &str = "2.0"; const DEFAULT_JSON_RPC_ID: u8 = 1; -const DEFAULT_REQ_TIMEOUT: Duration = Duration::from_secs(30); +/// Request timeout of the RPC client. It should be enough to accommodate +/// the time required to validate transaction on-chain. +const DEFAULT_REQ_TIMEOUT: Duration = Duration::from_secs(100); /// A convenience constant that represents empty params in a JSON-RPC request. pub const NO_PARAMS: Value = json!([]);