forked from TrueCloudLab/frostfs-contract
[#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
|
||||
storage.Put(ctx, notaryDisabledKey, args.notaryDisabled)
|
||||
if args.notaryDisabled {
|
||||
var irList []common.IRNode
|
||||
|
||||
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.SetSerialized(ctx, innerRingKey, args.keys)
|
||||
common.InitVote(ctx)
|
||||
runtime.Log("netmap contract notary disabled")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue