diff --git a/config.toml b/config.toml index d34c83f..f2f5ec2 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,7 @@ [service] escalation_interval = "1m" -datadog_enabled = true +datadog_enabled = false +statsd_enabled = false [server] host = "127.0.0.1:3000" diff --git a/src/db.rs b/src/db.rs index 8323a16..7cad2df 100644 --- a/src/db.rs +++ b/src/db.rs @@ -507,6 +507,9 @@ impl Database { Ok(()) } + /// Marks txs as mined if the associated tx hash is present in a block + /// + /// returns cumulative gas used for all txs pub async fn mine_txs(&self, chain_id: u64) -> eyre::Result<()> { let mut tx = self.pool.begin().await?;