forked from TrueCloudLab/frostfs-contract
f9f2a03078
Create common package. Define Ballot struct in common package. Use new type in all contracts with ballots. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
12 lines
203 B
Go
12 lines
203 B
Go
package common
|
|
|
|
type Ballot struct {
|
|
// ID of the voting decision.
|
|
ID []byte
|
|
|
|
// Public keys of already voted inner ring nodes.
|
|
Voters [][]byte
|
|
|
|
// Height of block with the last vote.
|
|
Height int
|
|
}
|