OSDN Git Service

fix vote result (#94)
[bytom/vapor.git] / protocol / state / vote_result.go
1 package state
2
3 import (
4         "github.com/vapor/protocol/bc"
5 )
6
7 // VoteResult represents a snapshot of each round of DPOS voting
8 // Seq indicates the sequence of current votes, which start from zero
9 // NumOfVote indicates the number of votes each consensus node receives, the key of map represent public key
10 // Finalized indicates whether this vote is finalized
11 type VoteResult struct {
12         Seq             uint64
13         NumOfVote       map[string]uint64
14         LastBlockHash   bc.Hash
15         Finalized       bool
16 }