10000 Add comments to aec_block_generator by richcarl · Pull Request #4529 · aeternity/aeternity · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Add comments to aec_block_generator #4529

merged 1 commit into from
Jan 21, 2025

Conversation

richcarl
Copy link
Contributor

No description provided.

Copy link
Member
@hanssv hanssv left a 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", []),
Copy link
Member

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.

Copy link
Contributor Author

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", []),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an improvement?

Copy link
Contributor Author

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

Copy link
Member
@hanssv hanssv left a 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 🤯

@richcarl richcarl merged commit 4041e29 into master Jan 21, 2025
37 of 40 checks passed
@richcarl richcarl deleted the blockgen-comments branch January 21, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0