[#222] netmap: Store public keys in _deploy
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
1beee7eb0b
commit
e9cfe6194f
1 changed files with 1 additions and 8 deletions
|
@ -130,14 +130,7 @@ func _deploy(data interface{}, isUpdate bool) {
|
||||||
// initialize the way to collect signatures
|
// initialize the way to collect signatures
|
||||||
storage.Put(ctx, notaryDisabledKey, args.notaryDisabled)
|
storage.Put(ctx, notaryDisabledKey, args.notaryDisabled)
|
||||||
if args.notaryDisabled {
|
if args.notaryDisabled {
|
||||||
var irList []common.IRNode
|
common.SetSerialized(ctx, innerRingKey, args.keys)
|
||||||
|
|
||||||
for i := 0; i < len(args.keys); i++ {
|
|
||||||
key := args.keys[i]
|
|
||||||
irList = append(irList, common.IRNode{PublicKey: key})
|
|
||||||
}
|
|
||||||
|
|
||||||
common.SetSerialized(ctx, innerRingKey, irList)
|
|
||||||
common.InitVote(ctx)
|
common.InitVote(ctx)
|
||||||
runtime.Log("netmap contract notary disabled")
|
runtime.Log("netmap contract notary disabled")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue