reorg cache fix (#3495)

* reorg cache period configurable

* fix comment

* u32 type

Co-authored-by: deevope <you@example.com>
This commit is contained in:
deevope
2020-11-25 17:59:37 +00:00
committed by GitHub
parent 3efe382e9c
commit fd5dfaaec4
4 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -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);
}