You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/wallet/src/wallet/export.rs
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -189,6 +189,7 @@ impl FullyNodedExport {
189
189
WshInner::SortedMulti(_) => Ok(()),
190
190
WshInner::Ms(ms) => check_ms(&ms.node),
191
191
},
192
+
Descriptor::Tr(_) => Ok(()),
192
193
_ => Err("The descriptor is not compatible with Bitcoin Core"),
193
194
}
194
195
}
@@ -314,6 +315,18 @@ mod test {
314
315
assert_eq!(export.label,"Test Label");
315
316
}
316
317
318
+
#[test]
319
+
fntest_export_tr(){
320
+
let descriptor = "tr([73c5da0a/86'/0'/0']tprv8fMn4hSKPRC1oaCPqxDb1JWtgkpeiQvZhsr8W2xuy3GEMkzoArcAWTfJxYb6Wj8XNNDWEjfYKK4wGQXh3ZUXhDF2NcnsALpWTeSwarJt7Vc/0/*)";
321
+
let change_descriptor = "tr([73c5da0a/86'/0'/0']tprv8fMn4hSKPRC1oaCPqxDb1JWtgkpeiQvZhsr8W2xuy3GEMkzoArcAWTfJxYb6Wj8XNNDWEjfYKK4wGQXh3ZUXhDF2NcnsALpWTeSwarJt7Vc/1/*)";
322
+
let wallet = get_test_wallet(descriptor,Some(change_descriptor),Network::Testnet);
323
+
let export = FullyNodedExport::export_wallet(&wallet,"Test Label",true).unwrap();
let descriptor = "wpkh(xprv9s21ZrQH143K4CTb63EaMxja1YiTnSEWKMbn23uoEnAzxjdUJRQkazCAtzxGm4LSoTSVTptoV9RbchnKPW9HxKtZumdyxyikZFDLhogJ5Uj/44'/0'/0'/0/*)";
0 commit comments