forked from TrueCloudLab/frostfs-contract
[#42] common: Replace Ballot struct's definition to vote.go src file
Remove empty ballot.go source file. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
8ceba2a7c2
commit
a9e745db18
2 changed files with 11 additions and 12 deletions
|
@ -1,12 +0,0 @@
|
|||
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
|
||||
}
|
|
@ -7,6 +7,17 @@ import (
|
|||
"github.com/nspcc-dev/neo-go/pkg/interop/util"
|
||||
)
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
const voteKey = "ballots"
|
||||
|
||||
const blockDiff = 20 // change base on performance evaluation
|
||||
|
|
Loading…
Reference in a new issue