Compare commits

...

1 Commits

Author SHA1 Message Date
nisdas
039b86bd89 debug logs 2023-01-25 21:49:25 +08:00

View File

@@ -3,6 +3,7 @@ package stategen
import ( import (
"context" "context"
"fmt" "fmt"
"runtime/debug"
"time" "time"
"github.com/pkg/errors" "github.com/pkg/errors"
@@ -41,7 +42,8 @@ func (_ *State) replayBlocks(
"endSlot": targetSlot, "endSlot": targetSlot,
"diff": targetSlot - state.Slot(), "diff": targetSlot - state.Slot(),
}) })
log.Debug("Replaying state") log.Debugf("Replaying state at %s", debug.Stack())
// The input block list is sorted in decreasing slots order. // The input block list is sorted in decreasing slots order.
if len(signed) > 0 { if len(signed) > 0 {
for i := len(signed) - 1; i >= 0; i-- { for i := len(signed) - 1; i >= 0; i-- {