diff --git a/internal/consensus/state.go b/internal/consensus/state.go index 60f4a5611..f06022767 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -1462,7 +1462,6 @@ func (cs *State) defaultDoPrevote(ctx context.Context, height int64, round int32 if err != nil { panic(fmt.Sprintf("ProcessProposal: %v", err)) } - fmt.Println("valid? ", isAppValid) // Vote nil if the Application rejected the block if !isAppValid { diff --git a/internal/consensus/state_test.go b/internal/consensus/state_test.go index 911197e60..26acbcdc8 100644 --- a/internal/consensus/state_test.go +++ b/internal/consensus/state_test.go @@ -1967,22 +1967,15 @@ func TestProcessProposalAccept(t *testing.T) { addr := pv1.Address() voteCh := subscribeToVoter(ctx, t, cs1, addr) - // start round and wait for propose and prevote startTestRound(ctx, cs1, cs1.Height, round) ensureNewRound(t, newRoundCh, height, round) ensureNewProposal(t, proposalCh, height, round) rs := cs1.GetRoundState() - propBlock := rs.ProposalBlock - partSet, err := propBlock.MakePartSet(types.BlockPartSizeBytes) require.NoError(t, err) - blockID := types.BlockID{ - Hash: propBlock.Hash(), - PartSetHeader: partSet.Header(), - } var prevoteHash tmbytes.HexBytes if !testCase.expectedNilPrevote { - prevoteHash = blockID.Hash + prevoteHash = rs.ProposalBlock.Hash() } ensurePrevoteMatch(t, voteCh, height, round, prevoteHash) })