[#190] common: Check `NeoFS` role for the next block

Current height makes it impossible to change
role and make some operations in one block.
Also, it may lead to accepting some operations
that are approved by already not valid alphabet.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
enable-notary-in-public-chains
Pavel Karpy 2021-12-06 13:40:34 +03:00 committed by Alex Vanin
parent b104a2ccbc
commit 9d0a82bc89
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ func InnerRingInvoker(ir []IRNode) interop.PublicKey {
// in side chain.
func InnerRingNodes() []IRNode {
blockHeight := ledger.CurrentIndex()
list := roles.GetDesignatedByRole(roles.NeoFSAlphabet, uint32(blockHeight))
list := roles.GetDesignatedByRole(roles.NeoFSAlphabet, uint32(blockHeight+1))
return keysToNodes(list)
}