Skip to content

Commit

Permalink
FIX: Integration test incoming header
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmihaic committed Oct 28, 2024
1 parent 3ab6d45 commit 1ac2400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down
3 changes: 1 addition & 2 deletions process/track/blockProcessor.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package track

import (
"runtime/debug"
"sort"

"github.com/multiversx/mx-chain-core-go/core"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1ac2400

Please sign in to comment.