[#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>
This commit is contained in:
parent
b104a2ccbc
commit
9d0a82bc89
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func InnerRingInvoker(ir []IRNode) interop.PublicKey {
|
||||||
// in side chain.
|
// in side chain.
|
||||||
func InnerRingNodes() []IRNode {
|
func InnerRingNodes() []IRNode {
|
||||||
blockHeight := ledger.CurrentIndex()
|
blockHeight := ledger.CurrentIndex()
|
||||||
list := roles.GetDesignatedByRole(roles.NeoFSAlphabet, uint32(blockHeight))
|
list := roles.GetDesignatedByRole(roles.NeoFSAlphabet, uint32(blockHeight+1))
|
||||||
return keysToNodes(list)
|
return keysToNodes(list)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue