Embed CommitSig into ExtendedCommitSig instead of duplicating fields

Signed-off-by: Thane Thomson <connect@thanethomson.com>
This commit is contained in:
Thane Thomson
2022-05-07 12:30:42 -04:00
parent fe5220bca6
commit 6389f2ff0c
6 changed files with 61 additions and 117 deletions

View File

@@ -526,10 +526,12 @@ func TestMaxProposalBlockSize(t *testing.T) {
state.ChainID = maxChainID
ecs := types.ExtendedCommitSig{
BlockIDFlag: types.BlockIDFlagNil,
ValidatorAddress: crypto.AddressHash([]byte("validator_address")),
Timestamp: timestamp,
Signature: crypto.CRandBytes(types.MaxSignatureSize),
CommitSig: types.CommitSig{
BlockIDFlag: types.BlockIDFlagNil,
ValidatorAddress: crypto.AddressHash([]byte("validator_address")),
Timestamp: timestamp,
Signature: crypto.CRandBytes(types.MaxSignatureSize),
},
}
extCommit := &types.ExtendedCommit{