go-ethereum icon indicating copy to clipboard operation
go-ethereum copied to clipboard

internal/ethapi: rename debug getters to match spec

Open lightclient opened this issue 2 years ago • 1 comments

(waiting for spec to be merged: https://github.com/ethereum/execution-apis/pull/247)

Some small fixes to get the existing debug methods to conform to the spec. Mainly dropping the encoding information from the method name as it should be deduced from the debug context and allowing the method to be invoked by either block number or block hash. It also adds the method debug_getTransaction which returns the raw tx bytes by tx hash. This is pretty much equivalent to the eth_getRawTransactionByHash method.

lightclient avatar Jun 27 '22 09:06 lightclient

Can you un-draft this, please?

fjl avatar Aug 08 '22 22:08 fjl