v2.1.0
Key Features
In this release, we introduce a lightweight transaction indexer as an alternative to the traditional KV indexer. This new indexer addresses the need for a more lightweight way of checking the status of a transaction.
Transaction status tracking:
The new tx_status RPC endpoint allows users to retrieve a transaction's status by its hash. The response includes a status field indicating whether the transaction is:
- Committed:
The transaction has been included in a block. The response also provides:- Block height
- Transaction index within the block
- Execution code
- An error log if the transaction failed during execution
- Pending:
Still in the mempool, awaiting inclusion in a block. - Evicted:
Removed from the mempool, typically due to being outbid in gas fees. - Unknown:
Neither committed nor in the mempool.
Deprecation of broadcast_tx_commit:
- The broadcast_tx_commit endpoint is now deprecated and will be removed in future versions. Users should instead use the new tx_status endpoint alongside broadcast_tx_sync or broadcast_tx_async.
Usage
The indexer can be used by interacting with the tx_status endpoint. Note: consensus nodes support this endpoint regardless of the indexer they have configured in config.toml
What's Changed
- refactor: expose CreateShareToRowRootProofs for downstream use (backport #3739) by @mergify in #3741
- feat: gRPC server for TxStatus endpoint (backport #3754) by @mergify in #3756
- chore: bump sdk to v1.24.1 and core to v1.39.0 (backport #3749) by @mergify in #3758
- fix(scripts): single-node.sh chain ID (backport #3777) by @mergify in #3782
- ci: remove test-interchain (backport #3776) by @mergify in #3799
- refactor: remove unnecessary
config.Seal()
(backport #3786) by @mergify in #3801 - feat: add error log to txstatus (backport #3788) by @mergify in #3789
- ci: fix goreleaser check deprecation warning (backport #3795) by @mergify in #3797
- fix: markdown links (backport #3778) by @mergify in #3798
Full Changelog: v2.0.0...v2.1.0