The former involves building a dictionary and converting various data to hex strings, while the latter just takes the len of a list. This turns the complexity from O(n) to O(1)
Details
Details
- Reviewers
Fabien bytesofman - Group Reviewers
Restricted Project - Commits
- rABC667ab0a1a5ab: [electrum] replace all len(tx.inputs()) with len(tx.txinputs())
grep -r 'len(.*\.inputs(' . python test_runner.py
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 25660 Build 50900: Build Diff electrum-tests Build 50899: arc lint + arc unit