Only one function is imported in script.py. Just move that function to script.py and remove the bignum.py module.
Remove unused functionality and fix some flake8 warnings along the way.
Only one function is imported in script.py. Just move that function to script.py and remove the bignum.py module.
Remove unused functionality and fix some flake8 warnings along the way.
We just throw it away whenever we use the
result so don't add it.
All it does is reverse the bytes order.
It is one line and is called in one place.
It's only called in one place.
I'm confused by the commit order here. First you add comments to bignum, then you remove the whole module.
10 | -from .messages import CTransaction, CTxOut, sha256, hash256, uint256_from_str, ser_uint256, ser_string 11 | - 12 | import hashlib 13 | import struct 14 | 15 | from .bignum import bn2vch
This import should go, I guess?
yes it should! Fixed
I'm confused by the commit order here. First you add comments to bignum, then you remove the whole module.
Comments are for the benefit of reviewers so they can see what functionality is being moved around.
It only contains one function and is only imported by one
other module (script.py). Just move the function to
script.py.
Comments are for the benefit of reviewers so they can see what functionality is being moved around.
I'd be ok with keeping the bignum module, just removing the functions that are no longer used. Not sure script.py is a much better place for that function.
Concept ACK on removing functions that are no longer used or tested
Concept ACK
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Concept ACK