core: move tx indexer to its own file (#28857)

This change moves all the transaction indexing functions to a separate txindexer.go file and defines a txIndexer structure as a refactoring.
This commit is contained in:
rjl493456442
2024-01-23 21:00:50 +01:00
committed by GitHub
parent 542c861b4f
commit 6b0de79935
6 changed files with 477 additions and 498 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ func (e *TxIndexingError) Error() string {
// ErrorCode returns the JSON error code for a revert.
// See: https://github.com/ethereum/wiki/wiki/JSON-RPC-Error-Codes-Improvement-Proposal
func (e *TxIndexingError) ErrorCode() int {
return 3 // TODO tbd
return -32000 // to be decided
}
// ErrorData returns the hex encoded revert reason.