pub fn do_check_spends<F>(tx: &Transaction, get_output: F)
where F: Fn(&OutPoint) -> Option<TxOut>,