diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-11-09 12:23:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-09 12:23:58 +0800 |
commit | a7e3c046693d9df860422e71a14c8659b36afe6a (patch) | |
tree | 3c4148b202a3d2acb3e326198c10c1b4b35738f6 /core/agreement_test.go | |
parent | 71a1dd9c072fb64da026ebe56acd2d187ec272c8 (diff) | |
download | tangerine-consensus-a7e3c046693d9df860422e71a14c8659b36afe6a.tar.gz tangerine-consensus-a7e3c046693d9df860422e71a14c8659b36afe6a.tar.zst tangerine-consensus-a7e3c046693d9df860422e71a14c8659b36afe6a.zip |
core: Extract VoteHeader (#313)
Diffstat (limited to 'core/agreement_test.go')
-rw-r--r-- | core/agreement_test.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/core/agreement_test.go b/core/agreement_test.go index be66c96..52c9e4d 100644 --- a/core/agreement_test.go +++ b/core/agreement_test.go @@ -131,11 +131,7 @@ func (s *AgreementTestSuite) prepareVote( nID types.NodeID, voteType types.VoteType, blockHash common.Hash, period uint64) ( vote *types.Vote) { - vote = &types.Vote{ - Type: voteType, - BlockHash: blockHash, - Period: period, - } + vote = types.NewVote(voteType, blockHash, period) s.Require().NoError(s.auths[nID].SignVote(vote)) return } |