Skip to content

Commit

Permalink
remove debug trace
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Jun 28, 2024
1 parent dd7b258 commit 122366d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions consensus/beacon/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,6 @@ func (beacon *Beacon) Finalize(chain consensus.ChainHeaderReader, header *types.
if err := overlay.OverlayVerkleTransition(state, parent.Root, chain.Config().OverlayStride); err != nil {
log.Error("error performing the transition", "err", err)
}

// if state.Database().InTransition() {
// fmt.Println(state.GetTrie().(*trie.TransitionTrie).Overlay().ToDot())
// }
}
}

Expand Down
13 changes: 0 additions & 13 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1045,20 +1045,7 @@ func (s *StateDB) IntermediateRoot(deleteEmptyObjects bool) common.Hash {
if metrics.EnabledExpensive {
defer func(start time.Time) { s.AccountHashes += time.Since(start) }(time.Now())
}
// if s.Database().InTransition() {
// log.Info("dumping tree before hashing")
// fmt.Println(s.GetTrie().(*trie.TransitionTrie).Overlay().ToDot())
// }
root := s.trie.Hash()
// if s.Database().InTransition() {
// log.Info("dumping tree after hashing")
// fmt.Println(s.GetTrie().(*trie.TransitionTrie).Overlay().ToDot())
// } else if s.Database().Transitioned() {
// log.Info("dumping tree after hashing - post transition")
// fmt.Println(s.GetTrie().(*trie.VerkleTrie).ToDot())
// } else {
// log.Info("transition hasn't started")
// }

// Save the root of the MPT so that it can be used during the transition
if !s.Database().InTransition() && !s.Database().Transitioned() {
Expand Down

0 comments on commit 122366d

Please sign in to comment.