.transaction()?;
let txid2 = rpc_client.send_raw_transaction(signed_tx.raw_hex())?;
- env.wait_until_electrum_sees_txid(signed_tx.compute_txid(), Duration::from_secs(5))?;
+ env.wait_until_electrum_sees_txid(signed_tx.compute_txid(), Duration::from_secs(6))?;
let spk_history = electrum_client.script_get_history(&tracked_addr.script_pubkey())?;
assert!(
std::thread::sleep(delay);
}
- Err(anyhow::Error::msg(
- "Timed out waiting for Electrsd to get block header",
- ))
+ Err(anyhow::Error::msg(format!(
+ "Timed out waiting for Electrsd to get transaction, took: {:?}",
+ start.elapsed()
+ )))
}
/// This method waits for Electrsd to see a transaction with given `txid`. `timeout` is the
std::thread::sleep(delay);
}
- Err(anyhow::Error::msg(
- "Timed out waiting for Electrsd to get transaction",
- ))
+ Err(anyhow::Error::msg(format!(
+ "Timed out waiting for Electrsd to get transaction, took: {:?}",
+ start.elapsed()
+ )))
}
/// Invalidate a number of blocks of a given size `count`.