From 548a75b872e0fcf7cb5f7d9589b6f61ad3cf3a84 Mon Sep 17 00:00:00 2001 From: Angel Valkov Date: Mon, 6 Jan 2025 18:40:44 +0200 Subject: [PATCH] Debug log --- consensus/bor/heimdall/span/spanner.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/consensus/bor/heimdall/span/spanner.go b/consensus/bor/heimdall/span/spanner.go index 11e6026206..d017800663 100644 --- a/consensus/bor/heimdall/span/spanner.go +++ b/consensus/bor/heimdall/span/spanner.go @@ -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" @@ -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),