From 303da33fb07dc3e82040cfc3311e1517081ec448 Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Wed, 11 Jan 2017 11:50:49 +0000 Subject: [PATCH] Rename GetPreimage to Preimage --- eth/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) }