/// The location of the output.
outpoint: OutPoint,
/// The nSequence value to set for this input.
- sequence: Option<Sequence>,
+ sequence: Sequence,
/// The information about the input we require to add it to a PSBT.
// Box it to stop the type being too big.
psbt_input: Box<psbt::Input>,
pub fn sequence(&self) -> Option<Sequence> {
match self {
Utxo::Local(_) => None,
- Utxo::Foreign { sequence, .. } => *sequence,
+ Utxo::Foreign { sequence, .. } => Some(*sequence),
}
}
}
WeightedUtxo {
utxo: Utxo::Foreign {
outpoint: txin.previous_output,
- sequence: Some(txin.sequence),
+ sequence: txin.sequence,
psbt_input: Box::new(psbt::Input {
witness_utxo: Some(txout.clone()),
non_witness_utxo: Some(prev_tx.as_ref().clone()),