[#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:
Leonard Lyubich 2021-02-04 10:17:23 +03:00 committed by Alex Vanin
parent 8ceba2a7c2
commit a9e745db18
2 changed files with 11 additions and 12 deletions

View file

@ -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
}

View file

@ -7,6 +7,17 @@ import (
"github.com/nspcc-dev/neo-go/pkg/interop/util" "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 voteKey = "ballots"
const blockDiff = 20 // change base on performance evaluation const blockDiff = 20 // change base on performance evaluation