diff --git a/eth/api.go b/eth/api.go index 4d059c2c27..c99cac792b 100644 --- a/eth/api.go +++ b/eth/api.go @@ -561,7 +561,7 @@ func (api *PrivateDebugAPI) TraceTransaction(ctx context.Context, txHash common. return nil, errors.New("database inconsistency") } -func (api *PrivateDebugAPI) GetPreimage(ctx context.Context, hash common.Hash) (hexutil.Bytes, error) { +func (api *PrivateDebugAPI) Preimage(ctx context.Context, hash common.Hash) (hexutil.Bytes, error) { db := core.PreimageTable(api.eth.ChainDb()) return db.Get(hash.Bytes()) }