-
Notifications
You must be signed in to change notification settings - Fork 242
Add comments to aec_block_generator #4529
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
Conversation
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 effort is noble...
case aec_blocks:txs(Candidate) of | ||
[] -> | ||
lager:debug("New empty microblock candidate generated, and discarded", []), | ||
lager:debug("Empty microblock candidate prepared", []), |
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.
discarded
was the important bit here, I don't like it being removed from the message.
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 was trying to find a wording that made sense. It's not discarded, just not published, and stays in the state ready to be filled when there are incoming tx events. Any better suggestion?
ok; | ||
_ -> | ||
epoch_mining:info("New microblock candidate generated", []), | ||
epoch_mining:info("New microblock candidate ready", []), |
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.
Not an improvement?
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.
Well, it's getting published as being ready to fetch. Tried to make it contrast with the alternative message above
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 give up if this is going to make anyone work faster please go ahead and merge it 🤯
No description provided.