Skip to content

Commit 4adff4b

Browse files
committed
add logs to debug shadowfork
1 parent c5ff404 commit 4adff4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/state/database.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ func (db *cachingDB) SaveTransitionState(root common.Hash) {
552552
// it has been saved.
553553
db.TransitionStatePerRoot[root] = db.CurrentTransitionState.Copy()
554554

555-
log.Debug("saving transition state", "storage processed", db.CurrentTransitionState.StorageProcessed, "addr", db.CurrentTransitionState.CurrentAccountAddress, "slot hash", db.CurrentTransitionState.CurrentSlotHash, "root", root, "ended", db.CurrentTransitionState.ended, "started", db.CurrentTransitionState.started)
555+
fmt.Println("saving transition state", "storage processed", db.CurrentTransitionState.StorageProcessed, "addr", db.CurrentTransitionState.CurrentAccountAddress, "slot hash", db.CurrentTransitionState.CurrentSlotHash, "root", root, "ended", db.CurrentTransitionState.ended, "started", db.CurrentTransitionState.started)
556556
}
557557
}
558558

@@ -566,7 +566,7 @@ func (db *cachingDB) LoadTransitionState(root common.Hash) {
566566
// as a verkle database.
567567
ts, ok := db.TransitionStatePerRoot[root]
568568
if !ok || ts == nil {
569-
log.Debug("could not find any transition state, starting with a fresh state", "is verkle", db.triedb.IsVerkle())
569+
fmt.Println("could not find any transition state, starting with a fresh state", "is verkle", db.triedb.IsVerkle())
570570
// Start with a fresh state
571571
ts = &TransitionState{ended: false}
572572
}
@@ -575,5 +575,5 @@ func (db *cachingDB) LoadTransitionState(root common.Hash) {
575575
// doesn't get overwritten.
576576
db.CurrentTransitionState = ts.Copy()
577577

578-
log.Debug("loaded transition state", "storage processed", db.CurrentTransitionState.StorageProcessed, "addr", db.CurrentTransitionState.CurrentAccountAddress, "slot hash", db.CurrentTransitionState.CurrentSlotHash, "root", root, "ended", db.CurrentTransitionState.ended, "started", db.CurrentTransitionState.started)
578+
fmt.Println("loaded transition state", "storage processed", db.CurrentTransitionState.StorageProcessed, "addr", db.CurrentTransitionState.CurrentAccountAddress, "slot hash", db.CurrentTransitionState.CurrentSlotHash, "root", root, "ended", db.CurrentTransitionState.ended, "started", db.CurrentTransitionState.started)
579579
}

0 commit comments

Comments
 (0)