diff --git a/consensus/propagation/commitment_test.go b/consensus/propagation/commitment_test.go index 2fa77447a..474fa650a 100644 --- a/consensus/propagation/commitment_test.go +++ b/consensus/propagation/commitment_test.go @@ -64,10 +64,10 @@ func TestPropose(t *testing.T) { haves, has := reactor2.getPeer(reactor1.self).GetHaves(prop.Height, prop.Round) assert.True(t, has) // the parts == total because we only have 2 peers - assert.Equal(t, haves.Size(), int(partSet.Total())) + assert.Equal(t, haves.Size(), int(partSet.Total()*2)) haves, has = reactor3.getPeer(reactor1.self).GetHaves(prop.Height, prop.Round) assert.True(t, has) // the parts == total because we only have 2 peers - assert.Equal(t, haves.Size(), int(partSet.Total())) + assert.Equal(t, haves.Size(), int(partSet.Total()*2)) } diff --git a/consensus/propagation/have_wants.go b/consensus/propagation/have_wants.go index 24cda8ded..0da3547b8 100644 --- a/consensus/propagation/have_wants.go +++ b/consensus/propagation/have_wants.go @@ -1,8 +1,6 @@ package propagation import ( - "fmt" - proptypes "github.com/tendermint/tendermint/consensus/propagation/types" "github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/pkg/trace/schema" @@ -348,9 +346,7 @@ func (blockProp *Reactor) handleRecoveryPart(peer p2p.ID, part *proptypes.Recove // clear all the wants if they exist go func(height int64, round int32, parts *proptypes.CombinedPartSet) { for i := uint32(0); i < parts.Total(); i++ { - fmt.Println("getting part", i) p, _ := parts.GetPart(i) - fmt.Println("got part", p != nil) msg := &proptypes.RecoveryPart{ Height: height, Round: round,