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 0595f3d commit 1deec1aCopy full SHA for 1deec1a
cli/commands/bridge/to-l1.ts
@@ -24,6 +24,9 @@ const searchForArbBlockByTimestamp = async (
24
let step = 131072
25
let block = await l2Provider.getBlock('latest')
26
while (block.timestamp > timestamp) {
27
+ while (block.number - step < 0) {
28
+ step = Math.round(step / 2)
29
+ }
30
block = await l2Provider.getBlock(block.number - step)
31
}
32
while (step > 1 && Math.abs(block.timestamp - timestamp) > BLOCK_SEARCH_THRESHOLD) {
0 commit comments