Skip to content

Commit 7d95f46

Browse files
committed
scan from genesis for test, not missing any events
1 parent 921807b commit 7d95f46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

timeboost/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ impl Timeboost {
113113
error!(?err, "fail to get chainid");
114114
err
115115
})?;
116-
// local test chain don't have finality gadget, thus don't support `Finalized` tag
117116
let tag = if chain_id == 31337 || chain_id == 1337 {
118-
BlockNumberOrTag::Latest
117+
// local test chain, we start scanning from the genesis
118+
BlockNumberOrTag::Number(0)
119119
} else {
120120
BlockNumberOrTag::Finalized
121121
};

0 commit comments

Comments
 (0)