mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
core/state: add comment
This commit is contained in:
parent
abd140b52b
commit
6d79e5ace6
1 changed files with 2 additions and 0 deletions
|
|
@ -117,6 +117,8 @@ func (r *stateReader) Storage(addr common.Address, key common.Hash) (common.Hash
|
||||||
if len(ret) == 0 {
|
if len(ret) == 0 {
|
||||||
return common.Hash{}, nil
|
return common.Hash{}, nil
|
||||||
}
|
}
|
||||||
|
// Perform the rlp-decode as the slot value is RLP-encoded in the state
|
||||||
|
// snapshot.
|
||||||
_, content, _, err := rlp.Split(ret)
|
_, content, _, err := rlp.Split(ret)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return common.Hash{}, err
|
return common.Hash{}, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue