mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
Rename GetPreimage to Preimage
This commit is contained in:
parent
34c0fd1a59
commit
303da33fb0
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue