verify-chain node client arg (#3678)

* add parameter fast_validation to the api

* arg `verify-chain` on node client

* arg verify chain + read_timeout parameter

* change timeout to 2hours

* update with tromp review

* 2nd comment from tromp
This commit is contained in:
deevope
2022-01-07 14:45:48 +01:00
committed by GitHub
parent c92d2e9fba
commit a3eebbc0ab
7 changed files with 125 additions and 29 deletions
+2 -1
View File
@@ -262,7 +262,8 @@ fn create_coinbase(dest: &str, block_fees: &BlockFees) -> Result<CbData, Error>
trace!("Sending build_coinbase request: {}", req_body);
let req = api::client::create_post_request(url.as_str(), None, &req_body)?;
let res: String = api::client::send_request(req).map_err(|e| {
let timeout = api::client::TimeOut::default();
let res: String = api::client::send_request(req, timeout).map_err(|e| {
let report = format!(
"Failed to get coinbase from {}. Is the wallet listening? {}",
dest, e