Commit ccaf130
Enhance getusedcoinstagstxhashes to handle edge cases (#1775)
* Enhance getusedcoinstagstxhashes to handle edge cases
Added a check to ensure that the startNumber does not exceed the available elements in the tags vector. This prevents potential out-of-bounds access and improves the robustness of the function.
* Handle negative startNumber for tags tx hashes
Co-authored-by: levonpetrosyan93 <[email protected]>
---------
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: levonpetrosyan93 <[email protected]>1 parent fc574a0 commit ccaf130
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1598 | 1598 | | |
1599 | 1599 | | |
1600 | 1600 | | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
1601 | 1611 | | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
| 1612 | + | |
1606 | 1613 | | |
1607 | 1614 | | |
1608 | 1615 | | |
| |||
0 commit comments