[#222] netmap: Store public keys in _deploy

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-03-23 12:02:38 +03:00 committed by Alex Vanin
parent 1beee7eb0b
commit e9cfe6194f

View file

@ -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")
} }