Skip to content

Commit

Permalink
[#74] Log notary disabled flag at init
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Vanin <[email protected]>
  • Loading branch information
alexvanin committed May 5, 2021
1 parent 2cc9c4f commit e4ba936
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions alphabet/alphabet_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 3 additions & 0 deletions audit/audit_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
1 change: 1 addition & 0 deletions balance/balance_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions container/container_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions neofs/neofs_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions neofsid/neofsid_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions netmap/netmap_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions reputation/reputation_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e4ba936

Please sign in to comment.