Skip to content

Commit 5d4888f

Browse files
authored
fix(evm): evm-tx-index cli fix to exclude most latest block (#2241)
1 parent 49bdefe commit 5d4888f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4444
- [#2224](https://github.com/NibiruChain/nibiru/pull/2224) - fix(evm): suppressing error on missing block bloom event
4545
- [#2238](https://github.com/NibiruChain/nibiru/pull/2238) - feat(evm-embeds): Add WNIBI.sol implementatino to contracts and related TypeScript and Solidity package updates for npm.
4646
- [#2239](https://github.com/NibiruChain/nibiru/pull/2239) - feat(funtoken): update `FunToken.sendToBank` to accept EVM and nibi addresses.
47+
- [#2241](https://github.com/NibiruChain/nibiru/pull/2241) - fix(evm): evm-tx-index cli fix to exclude most latest block
4748

4849
### Dependencies
4950

app/server/evm_tx_indexer_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ nibid evm-tx-index last-indexed latest
5454
}
5555
blockStore := tmstore.NewBlockStore(tmdb)
5656
minAvailableHeight := blockStore.Base()
57-
maxAvailableHeight := blockStore.Height()
57+
maxAvailableHeight := blockStore.Height() - 1 // exclude last block as block info could be uncommitted
5858
fmt.Printf("Block range available on the node: %d - %d\n", minAvailableHeight, maxAvailableHeight)
5959

6060
var fromBlock int64

0 commit comments

Comments
 (0)