Don't use PSBT_GLOBAL_XPUB as an unknown key in Psbt serde test
The previous test used global key id 1 which is not unknown, it's PSBT_GLOBAL_XPUB. That's an inconsistent state for a Psbt to be in, and will cause a deserialization error when the Psbt serde implementation is modified to use the BIP-174 format.
This commit is contained in:
parent
855299ab7e
commit
62026c1e2d
|
@ -1586,7 +1586,7 @@ mod tests {
|
||||||
}],
|
}],
|
||||||
};
|
};
|
||||||
let unknown: BTreeMap<raw::Key, Vec<u8>> =
|
let unknown: BTreeMap<raw::Key, Vec<u8>> =
|
||||||
vec![(raw::Key { type_value: 1, key_data: vec![0, 1] }, vec![3, 4, 5])]
|
vec![(raw::Key { type_value: 42, key_data: vec![0, 1] }, vec![3, 4, 5])]
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.collect();
|
.collect();
|
||||||
let key_source = ("deadbeef".parse().unwrap(), "0'/1".parse().unwrap());
|
let key_source = ("deadbeef".parse().unwrap(), "0'/1".parse().unwrap());
|
||||||
|
|
Loading…
Reference in New Issue