Fix pre-segwit inputs with esplora

This commit is contained in:
LLFourn
2022-03-16 10:11:31 +11:00
parent 9a6db15d26
commit 52bc63e48f
2 changed files with 31 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ pub struct Vin {
// None if coinbase
pub prevout: Option<PrevOut>,
pub scriptsig: Script,
#[serde(deserialize_with = "deserialize_witness")]
#[serde(deserialize_with = "deserialize_witness", default)]
pub witness: Vec<Vec<u8>>,
pub sequence: u32,
pub is_coinbase: bool,