Skip to content

Commit

Permalink
Rename GetPreimage to Preimage
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed Jan 12, 2017
1 parent 34c0fd1 commit 303da33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

0 comments on commit 303da33

Please sign in to comment.