Skip to content

Commit

Permalink
fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
AdoAdoAdo committed Dec 16, 2024
1 parent 9724125 commit 893302e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions consensus/spos/bls/v1/subroundBlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,9 @@ func (sr *subroundBlock) receivedBlockHeader(ctx context.Context, cnsDta *consen

func headerHasProof(headerHandler data.HeaderHandler) bool {
if check.IfNil(headerHandler) {
return true
return false
}
return headerHandler.GetPreviousProof() != nil
return !check.IfNilReflect(headerHandler.GetPreviousProof())
}

func (sr *subroundBlock) processReceivedBlock(ctx context.Context, cnsDta *consensus.Message) bool {
Expand Down
5 changes: 1 addition & 4 deletions integrationTests/consensus/consensusSigning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"testing"
"time"

logger "github.com/multiversx/mx-chain-logger-go"
"github.com/stretchr/testify/assert"

"github.com/multiversx/mx-chain-go/integrationTests"
Expand Down Expand Up @@ -71,8 +70,6 @@ func TestConsensusWithInvalidSigners(t *testing.T) {
t.Skip("this is not a short test")
}

_ = logger.SetLogLevel("*:DEBUG")

numMetaNodes := uint32(4)
numNodes := uint32(4)
consensusSize := uint32(4)
Expand Down Expand Up @@ -107,7 +104,7 @@ func TestConsensusWithInvalidSigners(t *testing.T) {
go checkBlockProposedEveryRound(numCommBlock, nonceForRoundMap, mutex, chDone, t)

extraTime := uint64(2)
endTime := time.Duration(roundTime)*time.Duration(numCommBlock+extraTime)*time.Millisecond + 10*time.Minute
endTime := time.Duration(roundTime)*time.Duration(numCommBlock+extraTime)*time.Millisecond + time.Minute
select {
case <-chDone:
case <-time.After(endTime):
Expand Down

0 comments on commit 893302e

Please sign in to comment.