Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tilacog on github.
  • I am tilacog (https://keybase.io/tilacog) on keybase.
  • I have a public key ASClYPuqDlrnrIQAunAoCcma3_VQs7YxwUOCi2paVKhmfAo

To claim this, I am signing this object:

Graphman

graphman chain check-blocks

SYNOPSIS

Compares cached blocks with fresh ones and clears the block cache when they differ

USAGE:

graphman --config chain check-blocks

@tilacog
tilacog / transaction_manager.rs
Created October 20, 2022 22:49
Transaction manager
use std::time::{Duration, Instant};
/// How many confirmations to wait for
const REQUIRED_CONFIRMATIONS: u32 = 1;
const WAIT_TIME_IN_SECONDS: u64 = 60;
const HARD_TIMEOUT_FACTOR: u64 = 10;
/// Time before giving up on waiting for transaction confirmation. After this time, we expect the
/// Transaction Monitor to bump the gas price and re-broadcast the transaction.