Skip to content

Commit b568657

Browse files
committed
disable Go CCC for MPT sequencer
1 parent 7f40166 commit b568657

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

miner/scroll_worker.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,10 @@ func (w *worker) newWork(now time.Time, parentHash common.Hash, reorging bool, r
490490

491491
vmConfig := *w.chain.GetVMConfig()
492492
cccLogger := ccc.NewLogger()
493-
vmConfig.Debug = true
494-
vmConfig.Tracer = cccLogger
495-
493+
if w.chainConfig.Scroll.UseZktrie {
494+
vmConfig.Debug = true
495+
vmConfig.Tracer = cccLogger
496+
}
496497
deadline := time.Unix(int64(header.Time), 0)
497498
if w.chainConfig.Clique != nil && w.chainConfig.Clique.RelaxedPeriod {
498499
// clique with relaxed period uses time.Now() as the header.Time, calculate the deadline

0 commit comments

Comments
 (0)