add check for invalid multisig output
add check for invalid multisig output
merge with upstream, removed input selection with 'select_input_reference'