This commit is contained in:
Bryan Stitt 2023-10-13 00:46:46 -07:00
parent adbf477ea3
commit 8067c33079

View File

@ -976,6 +976,7 @@ impl Web3Rpc {
} else if self.http_client.is_some() {
// there is a "watch_blocks" function, but a lot of public nodes (including llamanodes) do not support the necessary rpc endpoints
// TODO: is 1/2 the block time okay?
// TODO: tokio-console shows this as 1ms, but it should definitely be more than that. block_interval definitely isn't 2ms
let mut i = interval(self.block_interval / 2);
i.set_missed_tick_behavior(MissedTickBehavior::Skip);