-
Notifications
You must be signed in to change notification settings - Fork 13
Feat(core): Improve documentation for block module #107
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
249a5fb to
aa2c2ab
Compare
src/core/block.rs
Outdated
| //! | ||
| //! This module provides types for working with blocks, block hashes, spent | ||
| //! outputs (undo data), coins, and transaction spent outputs. All types except | ||
| //! blocks include both owned and borrowed variants for efficient memory management. |
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 would drop this last sentence. It's easy for it to go out of date, and I don't think it adds much.
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.
Done! Also to the part a few lines down.
src/core/block.rs
Outdated
| /// | ||
| /// # Structure | ||
| /// | ||
| /// The spent outputs are organized by transaction (excluding the coinbase, which |
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 would re-word this as: "The spent outputs are ordered by transaction order in a block"
src/core/block.rs
Outdated
| /// | ||
| /// This iterator yields [`TransactionSpentOutputsRef`] items for each transaction | ||
| /// in the block that has spent outputs (excluding the coinbase transaction, which | ||
| /// has no inputs). |
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 don't think it is correct to say that is has no inputs. It has a coinbase input, but it doesn't a prevout.
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.
Removed unnecessary detail and just mention "excluding the coinbase transaction" now.
5dab9e8 to
dc03084
Compare
dc03084 to
0ba8908
Compare
sedited
left a comment
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.
ACK 0ba8908
No description provided.