diff --git a/cmd/sovereignnode/chainSimulator/tests/processBlock/incomingHeader_test.go b/cmd/sovereignnode/chainSimulator/tests/processBlock/incomingHeader_test.go index 0cd642fed85..f74582aa934 100644 --- a/cmd/sovereignnode/chainSimulator/tests/processBlock/incomingHeader_test.go +++ b/cmd/sovereignnode/chainSimulator/tests/processBlock/incomingHeader_test.go @@ -178,7 +178,7 @@ func TestSovereignChainSimulator_AddIncomingHeaderExpectCorrectGenesisBlock(t *t require.False(t, sovBlockTracker.IsGenesisLastCrossNotarizedHeader()) require.Empty(t, currentSovBlock.GetExtendedShardHeaderHashes()) } else { - require.Equal(t, currIncomingHeaderRound-1, lastCrossNotarizedHeader.GetRound()) + require.Equal(t, currIncomingHeaderRound, lastCrossNotarizedHeader.GetRound()) require.False(t, sovBlockTracker.IsGenesisLastCrossNotarizedHeader()) require.Equal(t, [][]byte{extendedHeaderHash}, currentSovBlock.GetExtendedShardHeaderHashes()) } diff --git a/process/track/blockProcessor.go b/process/track/blockProcessor.go index e3a9fb9852f..5daf7748e84 100644 --- a/process/track/blockProcessor.go +++ b/process/track/blockProcessor.go @@ -1,7 +1,6 @@ package track import ( - "runtime/debug" "sort" "github.com/multiversx/mx-chain-core-go/core" @@ -239,7 +238,7 @@ func (bp *blockProcessor) computeSelfNotarizedHeaders(headers []data.HeaderHandl // ComputeLongestChain computes the longest chain for a given shard starting from a given header func (bp *blockProcessor) ComputeLongestChain(shardID uint32, header data.HeaderHandler) ([]data.HeaderHandler, [][]byte) { - debug.PrintStack() + //debug.PrintStack() headers := make([]data.HeaderHandler, 0) headersHashes := make([][]byte, 0)