Skip to content

Commit

Permalink
Validate config on NewApplication (#12997)
Browse files Browse the repository at this point in the history
* validate config on new application spawn

* Add changeset

* Check config only in the rebroadcast-transactions command
  • Loading branch information
george-dorin committed Apr 26, 2024
1 parent 0c4c24a commit 8c8994e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-schools-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#bugfix Fixed an issue where the `rebroadcast-transactions` commands did not execute config validation.
5 changes: 5 additions & 0 deletions core/cmd/shell_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,11 @@ func (s *Shell) RebroadcastTransactions(c *cli.Context) (err error) {
}
}

err = s.Config.Validate()
if err != nil {
return err
}

lggr := logger.Sugared(s.Logger.Named("RebroadcastTransactions"))
db, err := pg.OpenUnlockedDB(s.Config.AppID(), s.Config.Database())
if err != nil {
Expand Down

0 comments on commit 8c8994e

Please sign in to comment.