-
Notifications
You must be signed in to change notification settings - Fork 154
Add optional path for blocklist config #8326
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
Add optional path for blocklist config #8326
Conversation
Signed-off-by: Miroslav Gatsanoga <[email protected]>
Signed-off-by: Miroslav Gatsanoga <[email protected]>
Signed-off-by: Miroslav Gatsanoga <[email protected]>
...main/java/com/hedera/node/app/service/mono/state/initialization/BlocklistAccountCreator.java
Outdated
Show resolved
Hide resolved
...main/java/com/hedera/node/app/service/mono/state/initialization/BlocklistAccountCreator.java
Outdated
Show resolved
Hide resolved
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.
LGTM
Signed-off-by: Miroslav Gatsanoga <[email protected]>
Signed-off-by: Miroslav Gatsanoga <[email protected]>
hedera-node/hedera-mono-service/src/test/resources/bootstrap/standard.properties
Outdated
Show resolved
Hide resolved
Signed-off-by: Miroslav Gatsanoga <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #8326 +/- ##
=============================================
- Coverage 65.27% 65.27% -0.01%
Complexity 29207 29207
=============================================
Files 3218 3219 +1
Lines 122314 122332 +18
Branches 12512 12514 +2
=============================================
+ Hits 79845 79856 +11
- Misses 39520 39525 +5
- Partials 2949 2951 +2
☔ View full report in Codecov by Sentry. |
...main/java/com/hedera/node/app/service/mono/state/initialization/BlocklistAccountCreator.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Miroslav Gatsanoga <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
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.
LGTM
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.
LGTM ! But seems default path is not set. Not sure if that is intentional
Description:
Currently the blocklist is defined in as resource and if we want to update the definition we will need to rebuild in order for the changes to take effect. That means local node is not able to use a blocklist definition different than the one defined under
src/main/resources/evm-addresses-blocklist.csv
.This PR adds the ability to read the blocklist file specified by
accounts.blocklist.path
(renaming of the previousaccounts.blocklist.resource
) from some path e.g.data/onboard/evm-addresses-blocklist.csv
. In order to achieve that thebootstrap.properties
would need to contain the following two lines:If the path does not correspond to an existing file or it's left empty then we'll fallback and load the default
src/main/resources/evm-addresses-blocklist.csv
. An example config that would load the default resource would be:Related issues:
Checklist