Skip to content

Commit

Permalink
Debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
avalkov committed Jan 6, 2025
1 parent 4e64b3f commit 548a75b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions consensus/bor/heimdall/span/spanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ package span
import (
"context"
"encoding/hex"
"fmt"
"math"
"math/big"

"runtime/debug"

stakeTypes "github.com/0xPolygon/heimdall-v2/x/stake/types"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
Expand Down Expand Up @@ -171,6 +174,8 @@ func (c *ChainSpanner) CommitSpan(ctx context.Context, minimalSpan Span, validat
"producerBytes", hex.EncodeToString(producerBytes),
)

log.Error(fmt.Sprintf("Span commit called from %s", string(debug.Stack())))

data, err := c.validatorSet.Pack(method,
big.NewInt(0).SetUint64(minimalSpan.ID),
big.NewInt(0).SetUint64(minimalSpan.StartBlock),
Expand Down

0 comments on commit 548a75b

Please sign in to comment.