Chia-Network / Chia-Network/clvm_tools
`NodePath(-129)` raises an error, while `NodePath(-256)` does not
Open
@prozacchiwawa is already working on this.
Since Aug 18, 2022.
- Dominant language
- Python
- Stars
- 51
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Description
How to reproduce the error
n = NodePath(-129)
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "c:\users\chiaminejp\pycharmprojects\clvm_tools\clvm_tools\NodePath.py", line 67, in __init__
blob = index.to_bytes(byte_count, byteorder="big", signed=True)
OverflowError: int too big to convert
NodePath(-256)
n = NodePath(-256)
str(n)
'NodePath: 65280'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.