Rename GetPreimage to Preimage

This commit is contained in:
Nick Johnson 2017-01-11 11:50:49 +00:00
parent 34c0fd1a59
commit 303da33fb0

View file

@ -561,7 +561,7 @@ func (api *PrivateDebugAPI) TraceTransaction(ctx context.Context, txHash common.
return nil, errors.New("database inconsistency") 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()) db := core.PreimageTable(api.eth.ChainDb())
return db.Get(hash.Bytes()) return db.Get(hash.Bytes())
} }