Skip to content

Conversation

@alexanderwiederin
Copy link
Contributor

@alexanderwiederin alexanderwiederin commented Nov 10, 2025

Add convenience methods for idenifying null outpoints and zero txids:

  • TxidExt::is_all_zeros() checks if a txid consists of all zero bytes
  • TxOutPointExt::isNull() identifies coinbase outpoints(index u32::MAX with all-zero txid)

Tests verify both owned and ref variants work correctly with coinbase transactions from test block data.

Add convenience methods for identifying null outpoints and zero txids:
- TxidExt::is_all_zeros() checks if a txid consists of all zero bytes
- TxOutPointExt::is_null() identifies coinbase outpoints(index u32::MAX
  with all-zero txid)
@alexanderwiederin alexanderwiederin changed the title Feat(core): Add is_all_zeroes() and is_null() Methods to identify Coinbase outpoints Feat(core): Add is_all_zeros() and is_null() Methods to identify Coinbase outpoints Nov 10, 2025
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 477e077

Nice :)

@sedited sedited merged commit 63b5307 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