[electrum] replace all len(tx.inputs()) with len(tx.txinputs())
Summary: 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)
Test Plan:
grep -r 'len(.*\.inputs(' . python test_runner.py
Reviewers: #bitcoin_abc, Fabien, bytesofman
Reviewed By: #bitcoin_abc, Fabien, bytesofman
Differential Revision: https://reviews.bitcoinabc.org/D14809