Skip to content
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

Documentation for pending key and info classes and some other improvements whilst investigating #4553

Merged
merged 6 commits into from
Apr 14, 2024

Conversation

dsiganos
Copy link
Contributor

@dsiganos dsiganos commented Apr 12, 2024

The motivation for this PR was a desire to document pending_key and pending_info classes.
However, before I could document them, I needed to understand them.
I created a test case for pending table to help me understand it.
I created a function to print the pending table for learning and debugging purposes.
And whilst creating that test case, I noticed that there were refactoring improvements that could be made.

This prints all entries in the pending table.
Intended to be used for learning and unit test debugging.

Also intoduce ostream operator << for pending_key and pending_info.
@dsiganos dsiganos added the exclude from changelog Indicates the change is not relevant for appearing in the release changelog label Apr 12, 2024
@dsiganos dsiganos force-pushed the pending_key_info_improvements branch from 8e78f5d to ded54b2 Compare April 12, 2024 17:29
Copy link
Contributor

@clemahieu clemahieu left a comment

Choose a reason for hiding this comment

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

We've used the "east-const" style where the type can always be read from right to left.

Though not worth redoing these commits for that.

https://isocpp.org/wiki/faq/const-correctness#const-ref-alt

@dsiganos dsiganos merged commit 804dcac into nanocurrency:develop Apr 14, 2024
22 of 26 checks passed
@dsiganos dsiganos deleted the pending_key_info_improvements branch April 14, 2024 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from changelog Indicates the change is not relevant for appearing in the release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants