View in context in the libbitcoin Slack #general mirror.
if (input_index >= tx.inputs().size() || (input_index >= tx.outputs().size() && sighash == sighash_algorithm::single))