We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f53035e commit f10fcc5Copy full SHA for f10fcc5
src/tasks/cache/task.rs
@@ -55,6 +55,16 @@ impl CacheTask {
55
}
56
57
Some(bundle) = self.bundles.recv() => {
58
+
59
+ let env_block = self.envs.borrow().as_ref().map(|e| e.rollup_env().number.to::<u64>()).unwrap_or_default();
60
+ let bundle_block = bundle.bundle.block_number();
61
62
+ // Don't insert bundles for past blocks
63
+ if env_block > bundle_block {
64
+ debug!(env.block = env_block, bundle.block = bundle_block, "skipping bundle insert");
65
+ continue;
66
+ }
67
68
let res = cache.add_bundle(bundle.bundle, basefee);
69
// Skip bundles that fail to be added to the cache
70
if let Err(e) = res {
0 commit comments