Commit 6e01c6d
committed
feat(core): add is_all_zeros() and is_null() methods
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)1 parent 72d6174 commit 6e01c6d
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
556 | 561 | | |
557 | 562 | | |
558 | 563 | | |
| |||
655 | 660 | | |
656 | 661 | | |
657 | 662 | | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
658 | 668 | | |
659 | 669 | | |
660 | 670 | | |
| |||
0 commit comments