Skip to content

Conversation

@alexanderwiederin
Copy link
Contributor

No description provided.

//!
//! 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.
Copy link
Owner

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.

Copy link
Contributor Author

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.

///
/// # Structure
///
/// The spent outputs are organized by transaction (excluding the coinbase, which
Copy link
Owner

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"

///
/// This iterator yields [`TransactionSpentOutputsRef`] items for each transaction
/// in the block that has spent outputs (excluding the coinbase transaction, which
/// has no inputs).
Copy link
Owner

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.

Copy link
Contributor Author

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.

@alexanderwiederin alexanderwiederin force-pushed the docs-block branch 2 times, most recently from 5dab9e8 to dc03084 Compare November 10, 2025 17:42
@alexanderwiederin
Copy link
Contributor Author

Thanks for the feedback!

aa2c2ab -> 0ba8908 (compare)

Copy link
Owner

@sedited sedited left a comment

Choose a reason for hiding this comment

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

ACK 0ba8908

@sedited sedited merged commit fee5a6a into sedited:master Nov 10, 2025
9 checks passed
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.

2 participants