MakeBlock no longer returns error

This commit is contained in:
William Banfield
2022-03-08 18:46:00 -05:00
parent 531150819d
commit 75fb1ce421
10 changed files with 45 additions and 89 deletions
+1 -2
View File
@@ -171,8 +171,7 @@ func (rts *reactorTestSuite) addNode(
)
}
thisBlock, err := sf.MakeBlock(state, blockHeight, lastCommit)
require.NoError(t, err)
thisBlock := sf.MakeBlock(state, blockHeight, lastCommit)
thisParts, err := thisBlock.MakePartSet(types.BlockPartSizeBytes)
require.NoError(t, err)
blockID := types.BlockID{Hash: thisBlock.Hash(), PartSetHeader: thisParts.Header()}