Fix issue where t addresses weren't scanned when locked
This commit is contained in:
@@ -74,13 +74,13 @@ impl BugBip39Derivation {
|
||||
|
||||
// Tranfer money
|
||||
// 1. The desination is z address #0
|
||||
println!("Sending funds to ourself.");
|
||||
let zaddr = client.do_address()["z_addresses"][0].as_str().unwrap().to_string();
|
||||
let balance_json = client.do_balance();
|
||||
let amount: u64 = balance_json["zbalance"].as_u64().unwrap()
|
||||
+ balance_json["tbalance"].as_u64().unwrap();
|
||||
|
||||
let txid = if amount > 0 {
|
||||
println!("Sending funds to ourself.");
|
||||
let fee: u64 = DEFAULT_FEE.try_into().unwrap();
|
||||
match client.do_send(vec![(&zaddr, amount-fee, None)]) {
|
||||
Ok(txid) => txid,
|
||||
|
||||
Reference in New Issue
Block a user