reorg cache fix (#3495)
* reorg cache period configurable * fix comment * u32 type Co-authored-by: deevope <you@example.com>
This commit is contained in:
@@ -767,7 +767,7 @@ where
|
||||
let _ = tx_pool.reconcile_block(b);
|
||||
|
||||
// First "age out" any old txs in the reorg_cache.
|
||||
let cutoff = Utc::now() - Duration::minutes(30);
|
||||
let cutoff = Utc::now() - Duration::minutes(tx_pool.config.reorg_cache_period as i64);
|
||||
tx_pool.truncate_reorg_cache(cutoff);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user