EscanBE / evermint

Evermint is a fork of open source Evmos, maintains bug fixes, customization and enable developers to fork and transform to their chain, fully customized naming, in just 2 steps. For research and development purpose.
GNU Lesser General Public License v3.0
2 stars 3 forks source link

Feature Request: make EVMTxIndexer a mandatory service of Json-RPC #95

Closed VictorTrustyDev closed 8 months ago

VictorTrustyDev commented 8 months ago

EVMTxIndexer as a mandatory service of Json-RPC (:8545) will be an advantage.

Disadvantage:

  1. (Bug) If indexed data not available somehow (like turned off Json-RPC for sometime, then turned on, there is a gap between last indexed block to the latest one. So if a query to the JsonRPC service, the tx might not be found during indexing progress.
  2. Currently, indexer if not able to fetch a block result, it will retry infinity so on a prune-node, there is an edge case that indexer is turned of at the past, the data on db is exists, LastIndexedBlock returns positive number but that block is already pruned and the indexer can not back to work.

Steps: