Skip to content

Commit

Permalink
chore: delete debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
joeylichang committed Sep 30, 2024
1 parent 2a6bb87 commit 6d41ff8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"runtime"
"sort"
"sync"
"sync/atomic"
"time"

"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -1217,7 +1216,6 @@ func (s *StateDB) AccountsIntermediateRoot() {
}()
}

var calcStateObjectCount atomic.Int64
// Although naively it makes sense to retrieve the account trie and then do
// the contract storage and account updates sequentially, that short circuits
// the account prefetcher. Instead, let's process all the storage updates
Expand All @@ -1228,9 +1226,6 @@ func (s *StateDB) AccountsIntermediateRoot() {
wg.Add(1)
tasks <- func() {
obj.updateRoot()
if obj.trie != nil {
calcStateObjectCount.Add(1)
}
// Cache the data until commit. Note, this update mechanism is not symmetric
// to the deletion, because whereas it is enough to track account updates
// at commit time, deletions need tracking at transaction boundary level to
Expand All @@ -1244,7 +1239,6 @@ func (s *StateDB) AccountsIntermediateRoot() {
}
}
wg.Wait()
log.Info("versa calc root state object", "count", calcStateObjectCount.Load(), "version", s.db.GetVersion()+1)
}

func (s *StateDB) StateIntermediateRoot() common.Hash {
Expand Down Expand Up @@ -1625,7 +1619,6 @@ func (s *StateDB) Commit(block uint64, failPostCommitFunc func(), postCommitFunc
}()
}

var committedStateObjectNum atomic.Int64
for addr := range s.stateObjectsDirty {
if obj := s.stateObjects[addr]; !obj.deleted {
tasks <- func() {
Expand All @@ -1635,9 +1628,6 @@ func (s *StateDB) Commit(block uint64, failPostCommitFunc func(), postCommitFunc
taskResults <- taskResult{err, nil}
return
} else {
if obj.trie != nil {
committedStateObjectNum.Add(1)
}
taskResults <- taskResult{nil, set}
}
} else {
Expand Down Expand Up @@ -1720,7 +1710,6 @@ func (s *StateDB) Commit(block uint64, failPostCommitFunc func(), postCommitFunc
}
}
wg.Wait()
log.Info("versa commit state object", "count", committedStateObjectNum.Load(), "version", s.db.GetVersion()+1)
return nil
}()

Expand Down

0 comments on commit 6d41ff8

Please sign in to comment.