hyperledger / besu

An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client https://wiki.hyperledger.org/display/besu
https://www.hyperledger.org/projects/besu
Apache License 2.0
1.43k stars 759 forks source link

Error out on permissions config accounts-allowlist validation errors.[#7138] #7160

Closed krsh24 closed 1 month ago

krsh24 commented 1 month ago

PR description

When allow_accountlist in "permissions_config.toml" have duplicate or incorrect Ethereum addresses the functionality is to throw IllegalStateException during start-up. Currently, the validation errors are ignored and not logged to the log file as well. This change will ensure the config file is valid before starting up the node.

Fixed Issue(s)

https://github.com/hyperledger/besu/issues/7138

Thanks for sending a pull request! Have you done the following?

Locally, you can run these tests to catch failures early: