-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add DA_SIGNING_ADDRESSES support in configuration and scripts #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -186,6 +186,11 @@ if [ -n "${DA_DATA_NAMESPACE:-}" ]; then | |
| log "DEBUG" "Added DA data namespace flag: $DA_DATA_NAMESPACE" | ||
| fi | ||
|
|
||
| if [ -n "${DA_SIGNING_ADDRESSES:-}" ]; then | ||
| default_flags="$default_flags --rollkit.da.signing_addresses $DA_SIGNING_ADDRESSES" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The flag for signing addresses, |
||
| log "DEBUG" "Added DA signing addresses flag: $DA_SIGNING_ADDRESSES" | ||
| fi | ||
|
|
||
| default_flags="${default_flags} --home=${CONFIG_HOME}" | ||
|
|
||
| log "SUCCESS" "Configuration flags prepared successfully" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic for checking and updating
TxWorkerAccountshas been changed from being scoped to the[State]section to being global. This could lead to unintended side effects ifTxWorkerAccountsis a valid configuration key in other sections of theconfig.tomlfile. The log messages and comments (e.g., line 77) still refer to the[State]section, which is now misleading.The original implementation was safer in its intent, though the
grep -A 20was fragile. The logic should be reverted to be scoped to the[State]section, but using a more robust method. For example, you could usesed -n '/^\[State\]/,/^\[/p' "$FILE" | grep ...to check for the key within the section, and a similarsedcommand with a range to perform the update.