[#47] Replace GetHeight
with CurrentIndex
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
27ca675869
commit
9445c5c2fc
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@ package common
|
|||
|
||||
import (
|
||||
"github.com/nspcc-dev/neo-go/pkg/interop/binary"
|
||||
"github.com/nspcc-dev/neo-go/pkg/interop/blockchain"
|
||||
"github.com/nspcc-dev/neo-go/pkg/interop/crypto"
|
||||
"github.com/nspcc-dev/neo-go/pkg/interop/native/ledger"
|
||||
"github.com/nspcc-dev/neo-go/pkg/interop/storage"
|
||||
"github.com/nspcc-dev/neo-go/pkg/interop/util"
|
||||
)
|
||||
|
@ -34,7 +34,7 @@ func Vote(ctx storage.Context, id, from []byte) int {
|
|||
newCandidates []Ballot
|
||||
candidates = getBallots(ctx)
|
||||
found = -1
|
||||
blockHeight = blockchain.GetHeight()
|
||||
blockHeight = ledger.CurrentIndex()
|
||||
)
|
||||
|
||||
for i := 0; i < len(candidates); i++ {
|
||||
|
|
Loading…
Reference in a new issue