Skip to content

Commit

Permalink
sim-mod on kns_indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-frmr committed Mar 17, 2024
1 parent 4eec2ee commit 10174f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions kinode/packages/kns_indexer/kns_indexer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ fn main(our: Address, mut state: State) -> anyhow::Result<()> {
let eth_provider = eth::Provider::new(state.chain_id, 60);

// if block in state is < current_block, get logs from that part.
#[cfg(not(feature = "simulation-mode"))]
if state.block < eth_provider.get_block_number().unwrap_or(u64::MAX) {
loop {
match eth_provider.get_logs(&filter) {
Expand Down

0 comments on commit 10174f7

Please sign in to comment.