Skip to content

Commit

Permalink
More logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Nov 26, 2024
1 parent 90192b0 commit fbf54b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions relayer/cmd/scan_beefy.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ func ScanSingleBeefyBlockFn(cmd *cobra.Command, _ []string) error {
}
var emptyNum uint
var errNum uint
var revertedNum uint
for _, s := range commitment.Signatures {
ok, beefySig := s.Unwrap()
if !ok {
logrus.Warn("beefy signature is empty")
emptyNum++
continue
}
Expand All @@ -181,9 +181,10 @@ func ScanSingleBeefyBlockFn(cmd *cobra.Command, _ []string) error {
}
sAfter := util.BytesToHexString(s[:])
if reverted {
revertedNum++
logrus.Info(fmt.Sprintf("s is reverted, before clean:%s, after clean:%s", sBefore, sAfter))
}
}
logrus.Info(fmt.Sprintf("number of total signatures:%d,empty signatures:%d,invalid signatures:%d", len(commitment.Signatures), emptyNum, errNum))
logrus.Info(fmt.Sprintf("number of total signatures:%d,empty signatures:%d,invalid signatures:%d,reverted signatures:%d", len(commitment.Signatures), emptyNum, errNum, revertedNum))
return nil
}

0 comments on commit fbf54b8

Please sign in to comment.