Skip to content

Commit

Permalink
change pcli default to round timestamps to 10 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
avahowell authored and conorsch committed Mar 26, 2024
1 parent 6637a8a commit 181b110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bin/pcli/src/command/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1063,8 +1063,8 @@ impl TxCmd {
timeout_timestamp = current_time_ns + 1.728e14 as u64;
}

// round to the nearest hour
timeout_timestamp += timeout_timestamp % 3600_000_000_000;
// round to the nearest 10 minutes
timeout_timestamp += timeout_timestamp % 600_000_000_000;

fn parse_denom_and_amount(value_str: &str) -> anyhow::Result<(Amount, Metadata)> {
let denom_re = Regex::new(r"^([0-9.]+)(.+)$").context("denom regex invalid")?;
Expand Down

0 comments on commit 181b110

Please sign in to comment.