rpc: debug_intermediateRoots (#754)

* Problem: need to add JSON-RPC endpoint debug_intermediateRoots

Closes #715

* currently return emtpy hash

* add changelog entry

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
Adu
2021-11-16 14:29:51 +00:00
committed by GitHub
co-authored by Federico Kunze Küllmer
parent fdabf69cb3
commit e96a4b9f9d
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -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
}