Skip to content

Commit

Permalink
NotifierConfig disabled by default and enabled with deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
axenteoctavian committed Jan 28, 2025
1 parent 6d013bc commit ef1de5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/sovereignnode/config/sovereignConfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# Running an additional main chain light node as a notifier requires extra hardware resources.
# When disabled, the node will rely on and trust incoming headers from the main chain proposed by other leaders.
# Disabling this flag can be useful in scenarios where additional validation infrastructure isn't necessary.
Enabled = true
Enabled = false

SubscribedEvents = [
{ Identifier = "deposit", Addresses = ["erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th"] },
Expand Down
5 changes: 3 additions & 2 deletions scripts/testnet/sovereignBridge/pyScripts/update_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def update_key(lines, key, value) -> []:
return updated_lines


def enable_grpc(lines, section):
def enable_key(lines, section):
updated_lines = []
section_found = False

Expand All @@ -51,7 +51,8 @@ def update_sovereign_config(file_path, main_chain_address, sovereign_chain_addre
updated_lines = update_subscribed_addresses(lines, "OutgoingSubscribedEvents", "deposit", sovereign_chain_address)
updated_lines = update_subscribed_addresses(updated_lines, "NotifierConfig", "deposit", main_chain_address)
updated_lines = update_subscribed_addresses(updated_lines, "NotifierConfig", "execute", main_chain_address)
updated_lines = enable_grpc(updated_lines, "OutGoingBridge")
updated_lines = enable_key(updated_lines, "OutGoingBridge")
updated_lines = enable_key(updated_lines, "NotifierConfig")

with open(file_path, 'w') as file:
file.writelines(updated_lines)
Expand Down

0 comments on commit ef1de5a

Please sign in to comment.