Skip to content

Commit

Permalink
Problem: need to add JSON-RPC endpoint debug_intermediateRoots
Browse files Browse the repository at this point in the history
Closes evmos#715

* currently return emtpy hash
  • Loading branch information
adu-web3 committed Nov 16, 2021
1 parent d922441 commit 1498c86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rpc/ethereum/namespaces/debug/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,3 +474,10 @@ func (a *API) SeedHash(number uint64) (string, error) {

return fmt.Sprintf("0x%x", ethash.SeedHash(number)), nil
}

// IntermediateRoots executes a block, and returns a list
// of intermediate roots: the stateroot after each transaction.
func (a *API) IntermediateRoots(hash common.Hash, _ *evmtypes.TraceConfig) ([]common.Hash, error) {
a.logger.Debug("debug_intermediateRoots", "hash", hash)
return ([]common.Hash)(nil), nil
}

0 comments on commit 1498c86

Please sign in to comment.