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 Not Applicable - Unit
Tests Not Applicable