Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

increase timeout to support mainnet/calibration #250

Merged
merged 1 commit into from
Jul 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/jsonrpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!([]);
Expand Down