mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
trie: fix
This commit is contained in:
parent
aafdcc518a
commit
1791b95016
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ func (t *StateTrie) GetKey(shaKey []byte) []byte {
|
|||
if t.preimages == nil {
|
||||
return nil
|
||||
}
|
||||
if key, ok := t.getSecKeyCache()[common.BytesToHash(shaKey)]; ok {
|
||||
if key, ok := t.secKeyCache[common.BytesToHash(shaKey)]; ok {
|
||||
return key
|
||||
}
|
||||
return t.preimages.Preimage(common.BytesToHash(shaKey))
|
||||
|
|
|
|||
Loading…
Reference in a new issue