[#209] *: use current block index in GetDesignatedByRole
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
b8d2569f4d
commit
ce391b108d
2 changed files with 2 additions and 2 deletions
|
@ -124,7 +124,7 @@ func _deploy(data interface{}, isUpdate bool) {
|
|||
// only by side chain committee.
|
||||
func Update(script []byte, manifest []byte, data interface{}) {
|
||||
blockHeight := ledger.CurrentIndex()
|
||||
alphabetKeys := roles.GetDesignatedByRole(roles.NeoFSAlphabet, uint32(blockHeight))
|
||||
alphabetKeys := roles.GetDesignatedByRole(roles.NeoFSAlphabet, uint32(blockHeight+1))
|
||||
alphabetCommittee := common.Multiaddress(alphabetKeys, true)
|
||||
|
||||
common.CheckAlphabetWitness(alphabetCommittee)
|
||||
|
|
|
@ -52,7 +52,7 @@ func _deploy(data interface{}, isUpdate bool) {
|
|||
// only by side chain committee.
|
||||
func Update(script []byte, manifest []byte, data interface{}) {
|
||||
blockHeight := ledger.CurrentIndex()
|
||||
alphabetKeys := roles.GetDesignatedByRole(roles.NeoFSAlphabet, uint32(blockHeight))
|
||||
alphabetKeys := roles.GetDesignatedByRole(roles.NeoFSAlphabet, uint32(blockHeight+1))
|
||||
alphabetCommittee := common.Multiaddress(alphabetKeys, true)
|
||||
|
||||
if !runtime.CheckWitness(alphabetCommittee) {
|
||||
|
|
Loading…
Reference in a new issue