Convert all callsites from `Transaction.inputs()` to `Transaction.txinputs()`. The latter is less expensive as it does not require a dict building operation with hex conversions (especially when all we are interested in is `len(tx.txinputs())`
Depends on D14521