Skip to content

Commit

Permalink
Debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
avalkov committed Jan 3, 2025
1 parent 75f685f commit 4e64b3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions consensus/bor/bor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,7 @@ func (c *Bor) FetchAndCommitSpan(
)

if c.HeimdallClient == nil {
log.Error("Heimdall client is nil")
// fixme: move to a new mock or fake and remove c.HeimdallClient completely
s, err := c.getNextHeimdallSpanForTest(ctx, newSpanID, header, chain)
if err != nil {
Expand Down
3 changes: 2 additions & 1 deletion consensus/bor/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"

"github.com/ethereum/go-ethereum/consensus/bor/valset"
"github.com/ethereum/go-ethereum/log"

lru "github.com/hashicorp/golang-lru"

Expand Down Expand Up @@ -152,7 +153,7 @@ func (s *Snapshot) apply(headers []*types.Header) (*Snapshot, error) {
}

validatorBytes := header.GetValidatorBytes(s.chainConfig)

log.Error("ValidatorBytes", "headerNumber", header.Number.String(), "validatorBytes", validatorBytes)
// get validators from headers and use that for new validator set
newVals, _ := valset.ParseValidators(validatorBytes)
v := getUpdatedValidatorSet(snap.ValidatorSet.Copy(), newVals)
Expand Down

0 comments on commit 4e64b3f

Please sign in to comment.