This commit is contained in:
William Banfield
2022-05-17 23:10:25 -04:00
parent cbd211a173
commit beb6c47e29
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -1096,7 +1096,7 @@ func TestCreateProposalAbsentVoteExtensions(t *testing.T) {
stripSignatures(lastCommit)
if testCase.expectPanic {
require.Panics(t, func() {
blockExec.CreateProposalBlock(ctx, testCase.height, state, lastCommit, pa)
blockExec.CreateProposalBlock(ctx, testCase.height, state, lastCommit, pa) //nolint:errcheck
})
} else {
_, err = blockExec.CreateProposalBlock(ctx, testCase.height, state, lastCommit, pa)
+1 -2
View File
@@ -8,7 +8,6 @@ import (
"github.com/gogo/protobuf/proto"
"github.com/google/orderedcode"
db "github.com/tendermint/tm-db"
dbm "github.com/tendermint/tm-db"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
@@ -519,7 +518,7 @@ func (bs *BlockStore) SaveBlockWithExtendedCommit(block *types.Block, blockParts
}
}
func (bs *BlockStore) saveBlockToBatch(batch db.Batch, block *types.Block, blockParts *types.PartSet, seenCommit *types.Commit) error {
func (bs *BlockStore) saveBlockToBatch(batch dbm.Batch, block *types.Block, blockParts *types.PartSet, seenCommit *types.Commit) error {
if block == nil {
panic("BlockStore can only save a non-nil block")
}
+1 -1
View File
@@ -71,7 +71,7 @@ type VoteSet struct {
}
// NewVoteSet instantiates all fields of a new vote set. This constructor required
// that no vote extension data be present on the votes taht are added to the set.
// that no vote extension data be present on the votes that are added to the set.
func NewVoteSet(chainID string, height int64, round int32,
signedMsgType tmproto.SignedMsgType, valSet *ValidatorSet) *VoteSet {
if height == 0 {