[#74] Log notary disabled flag at init

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-05-04 17:02:05 +03:00 committed by Alex Vanin
parent 2cc9c4fc66
commit e4ba936f50
8 changed files with 10 additions and 0 deletions

View file

@ -55,6 +55,7 @@ func Init(notaryDisabled bool, owner interop.Hash160, addrNetmap, addrProxy inte
storage.Put(ctx, notaryDisabledKey, notaryDisabled) storage.Put(ctx, notaryDisabledKey, notaryDisabled)
if notaryDisabled { if notaryDisabled {
common.InitVote(ctx) common.InitVote(ctx)
runtime.Log(name + " notary disabled")
} }
runtime.Log(name + " contract initialized") runtime.Log(name + " contract initialized")

View file

@ -58,6 +58,9 @@ func Init(notaryDisabled bool, owner interop.Hash160, addrNetmap interop.Hash160
// initialize the way to collect signatures // initialize the way to collect signatures
storage.Put(ctx, notaryDisabledKey, notaryDisabled) storage.Put(ctx, notaryDisabledKey, notaryDisabled)
if notaryDisabled {
runtime.Log("audit contract notary disabled")
}
runtime.Log("audit contract initialized") runtime.Log("audit contract initialized")
} }

View file

@ -82,6 +82,7 @@ func Init(notaryDisabled bool, owner, addrNetmap, addrContainer interop.Hash160)
storage.Put(ctx, notaryDisabledKey, notaryDisabled) storage.Put(ctx, notaryDisabledKey, notaryDisabled)
if notaryDisabled { if notaryDisabled {
common.InitVote(ctx) common.InitVote(ctx)
runtime.Log("balance contract notary disabled")
} }
runtime.Log("balance contract initialized") runtime.Log("balance contract initialized")

View file

@ -75,6 +75,7 @@ func Init(notaryDisabled bool, owner, addrNetmap, addrBalance, addrID interop.Ha
storage.Put(ctx, notaryDisabledKey, notaryDisabled) storage.Put(ctx, notaryDisabledKey, notaryDisabled)
if notaryDisabled { if notaryDisabled {
common.InitVote(ctx) common.InitVote(ctx)
runtime.Log("container contract notary disabled")
} }
runtime.Log("container contract initialized") runtime.Log("container contract initialized")

View file

@ -113,6 +113,7 @@ func Init(notaryDisabled bool, owner, addrProc interop.Hash160, args []interop.P
storage.Put(ctx, notaryDisabledKey, notaryDisabled) storage.Put(ctx, notaryDisabledKey, notaryDisabled)
if notaryDisabled { if notaryDisabled {
common.InitVote(ctx) common.InitVote(ctx)
runtime.Log("neofs contract notary disabled")
} }
runtime.Log("neofs: contract initialized") runtime.Log("neofs: contract initialized")

View file

@ -43,6 +43,7 @@ func Init(notaryDisabled bool, owner, addrNetmap, addrContainer interop.Hash160)
storage.Put(ctx, notaryDisabledKey, notaryDisabled) storage.Put(ctx, notaryDisabledKey, notaryDisabled)
if notaryDisabled { if notaryDisabled {
common.InitVote(ctx) common.InitVote(ctx)
runtime.Log("neofsid contract notary disabled")
} }
runtime.Log("neofsid contract initialized") runtime.Log("neofsid contract initialized")

View file

@ -96,6 +96,7 @@ func Init(notaryDisabled bool, owner, addrBalance, addrContainer interop.Hash160
common.SetSerialized(ctx, innerRingKey, irList) common.SetSerialized(ctx, innerRingKey, irList)
common.InitVote(ctx) common.InitVote(ctx)
runtime.Log("netmap contract notary disabled")
} }
runtime.Log("netmap contract initialized") runtime.Log("netmap contract initialized")

View file

@ -29,6 +29,7 @@ func Init(notaryDisabled bool, owner interop.Hash160) {
storage.Put(ctx, notaryDisabledKey, notaryDisabled) storage.Put(ctx, notaryDisabledKey, notaryDisabled)
if notaryDisabled { if notaryDisabled {
common.InitVote(ctx) common.InitVote(ctx)
runtime.Log("reputation contract notary disabled")
} }
runtime.Log("reputation contract initialized") runtime.Log("reputation contract initialized")