diff --git a/common/ballot.go b/common/ballot.go deleted file mode 100644 index 0abbfd3..0000000 --- a/common/ballot.go +++ /dev/null @@ -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 -} diff --git a/common/vote.go b/common/vote.go index fa2b9a3..09d410f 100644 --- a/common/vote.go +++ b/common/vote.go @@ -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