-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat(config): optimize log for config without Blackhole account #6356
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
feat(config): optimize log for config without Blackhole account #6356
Conversation
|
Hi, please resolve the conflicts |
13a276c to
d7715c7
Compare
| assertsAddress.put(accountName, address); | ||
| } | ||
| if (assertsAddress.get(ACCOUNT_BLACKHOLE) == null) { | ||
| throw new TronError("Account[Blackhole] is not configured.", TronError.ErrCode.GENESIS_BLOCK_INIT); |
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.
use ACCOUNT_BLACKHOLE instead of Blackhole?
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.
Because this process occurs when the genesis block is being initialized
| AccountStore.setAccount(config); | ||
| Assert.fail(); | ||
| } catch (Throwable e) { | ||
| Assert.assertTrue(e instanceof TronError); |
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.
add Assert.assertEquals("Account[Blackhole] is not configured.", e.getMessage());?
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.
I think it is enough to judge the exception type, which is mainly functional testing rather than specific log information comparison.
What does this PR do?
Optimize the log for configuration without Blackhole account. Fixes #6299
Why are these changes required?
This PR has been tested by:
Follow up
Extra details