[#74] Log notary disabled flag at init
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
2cc9c4fc66
commit
e4ba936f50
8 changed files with 10 additions and 0 deletions
|
@ -55,6 +55,7 @@ func Init(notaryDisabled bool, owner interop.Hash160, addrNetmap, addrProxy inte
|
|||
storage.Put(ctx, notaryDisabledKey, notaryDisabled)
|
||||
if notaryDisabled {
|
||||
common.InitVote(ctx)
|
||||
runtime.Log(name + " notary disabled")
|
||||
}
|
||||
|
||||
runtime.Log(name + " contract initialized")
|
||||
|
|
|
@ -58,6 +58,9 @@ func Init(notaryDisabled bool, owner interop.Hash160, addrNetmap interop.Hash160
|
|||
|
||||
// initialize the way to collect signatures
|
||||
storage.Put(ctx, notaryDisabledKey, notaryDisabled)
|
||||
if notaryDisabled {
|
||||
runtime.Log("audit contract notary disabled")
|
||||
}
|
||||
|
||||
runtime.Log("audit contract initialized")
|
||||
}
|
||||
|
|
|
@ -82,6 +82,7 @@ func Init(notaryDisabled bool, owner, addrNetmap, addrContainer interop.Hash160)
|
|||
storage.Put(ctx, notaryDisabledKey, notaryDisabled)
|
||||
if notaryDisabled {
|
||||
common.InitVote(ctx)
|
||||
runtime.Log("balance contract notary disabled")
|
||||
}
|
||||
|
||||
runtime.Log("balance contract initialized")
|
||||
|
|
|
@ -75,6 +75,7 @@ func Init(notaryDisabled bool, owner, addrNetmap, addrBalance, addrID interop.Ha
|
|||
storage.Put(ctx, notaryDisabledKey, notaryDisabled)
|
||||
if notaryDisabled {
|
||||
common.InitVote(ctx)
|
||||
runtime.Log("container contract notary disabled")
|
||||
}
|
||||
|
||||
runtime.Log("container contract initialized")
|
||||
|
|
|
@ -113,6 +113,7 @@ func Init(notaryDisabled bool, owner, addrProc interop.Hash160, args []interop.P
|
|||
storage.Put(ctx, notaryDisabledKey, notaryDisabled)
|
||||
if notaryDisabled {
|
||||
common.InitVote(ctx)
|
||||
runtime.Log("neofs contract notary disabled")
|
||||
}
|
||||
|
||||
runtime.Log("neofs: contract initialized")
|
||||
|
|
|
@ -43,6 +43,7 @@ func Init(notaryDisabled bool, owner, addrNetmap, addrContainer interop.Hash160)
|
|||
storage.Put(ctx, notaryDisabledKey, notaryDisabled)
|
||||
if notaryDisabled {
|
||||
common.InitVote(ctx)
|
||||
runtime.Log("neofsid contract notary disabled")
|
||||
}
|
||||
|
||||
runtime.Log("neofsid contract initialized")
|
||||
|
|
|
@ -96,6 +96,7 @@ func Init(notaryDisabled bool, owner, addrBalance, addrContainer interop.Hash160
|
|||
|
||||
common.SetSerialized(ctx, innerRingKey, irList)
|
||||
common.InitVote(ctx)
|
||||
runtime.Log("netmap contract notary disabled")
|
||||
}
|
||||
|
||||
runtime.Log("netmap contract initialized")
|
||||
|
|
|
@ -29,6 +29,7 @@ func Init(notaryDisabled bool, owner interop.Hash160) {
|
|||
storage.Put(ctx, notaryDisabledKey, notaryDisabled)
|
||||
if notaryDisabled {
|
||||
common.InitVote(ctx)
|
||||
runtime.Log("reputation contract notary disabled")
|
||||
}
|
||||
|
||||
runtime.Log("reputation contract initialized")
|
||||
|
|
Loading…
Reference in a new issue