forked from cerc-io/plugeth
Added condition into statedb.go to enable native geth tests to pass.
This commit is contained in:
parent
c47808fb91
commit
fadf28c4b5
@ -962,6 +962,11 @@ func (s *StateDB) clearJournalAndRefund() {
|
|||||||
// storage iteration and constructs trie node deletion markers by creating
|
// storage iteration and constructs trie node deletion markers by creating
|
||||||
// stack trie with iterated slots.
|
// stack trie with iterated slots.
|
||||||
func (s *StateDB) fastDeleteStorage(addrHash common.Hash, root common.Hash) (bool, common.StorageSize, map[common.Hash][]byte, *trienode.NodeSet, error) {
|
func (s *StateDB) fastDeleteStorage(addrHash common.Hash, root common.Hash) (bool, common.StorageSize, map[common.Hash][]byte, *trienode.NodeSet, error) {
|
||||||
|
// begin PluGeth Injection // this injection is neccessary to enable the native geth tests in core/state to pass
|
||||||
|
if _, err := s.snap.Account(addrHash); err != nil {
|
||||||
|
return false, 0, nil, nil, err
|
||||||
|
}
|
||||||
|
// end PluGeth Injection
|
||||||
iter, err := s.snaps.StorageIterator(s.originalRoot, addrHash, common.Hash{})
|
iter, err := s.snaps.StorageIterator(s.originalRoot, addrHash, common.Hash{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, 0, nil, nil, err
|
return false, 0, nil, nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user