From e4ba936f5078d0f6ed1b73074c09b19405ff151c Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 4 May 2021 17:02:05 +0300 Subject: [PATCH] [#74] Log notary disabled flag at init Signed-off-by: Alex Vanin --- alphabet/alphabet_contract.go | 1 + audit/audit_contract.go | 3 +++ balance/balance_contract.go | 1 + container/container_contract.go | 1 + neofs/neofs_contract.go | 1 + neofsid/neofsid_contract.go | 1 + netmap/netmap_contract.go | 1 + reputation/reputation_contract.go | 1 + 8 files changed, 10 insertions(+) diff --git a/alphabet/alphabet_contract.go b/alphabet/alphabet_contract.go index d796fdd..d6c2113 100644 --- a/alphabet/alphabet_contract.go +++ b/alphabet/alphabet_contract.go @@ -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") diff --git a/audit/audit_contract.go b/audit/audit_contract.go index 276a6a9..3ba24e1 100644 --- a/audit/audit_contract.go +++ b/audit/audit_contract.go @@ -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") } diff --git a/balance/balance_contract.go b/balance/balance_contract.go index 9d7e7e0..8e223ce 100644 --- a/balance/balance_contract.go +++ b/balance/balance_contract.go @@ -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") diff --git a/container/container_contract.go b/container/container_contract.go index 3c72278..ecae9f6 100644 --- a/container/container_contract.go +++ b/container/container_contract.go @@ -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") diff --git a/neofs/neofs_contract.go b/neofs/neofs_contract.go index 59a68ad..f114c02 100644 --- a/neofs/neofs_contract.go +++ b/neofs/neofs_contract.go @@ -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") diff --git a/neofsid/neofsid_contract.go b/neofsid/neofsid_contract.go index 1eb66c2..8d0553f 100644 --- a/neofsid/neofsid_contract.go +++ b/neofsid/neofsid_contract.go @@ -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") diff --git a/netmap/netmap_contract.go b/netmap/netmap_contract.go index c749262..e87842e 100644 --- a/netmap/netmap_contract.go +++ b/netmap/netmap_contract.go @@ -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") diff --git a/reputation/reputation_contract.go b/reputation/reputation_contract.go index 2a9b377..59740e6 100644 --- a/reputation/reputation_contract.go +++ b/reputation/reputation_contract.go @@ -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")