From 9d0a82bc896d715e11679d32318352c451fea851 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Mon, 6 Dec 2021 13:40:34 +0300 Subject: [PATCH] [#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 --- common/ir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/ir.go b/common/ir.go index 6fc050e..927865d 100644 --- a/common/ir.go +++ b/common/ir.go @@ -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) }