From cacccf752d6260250e0b5de6b3ea8112950cda06 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Wed, 30 Oct 2019 17:21:58 -0700 Subject: [PATCH] Update num confirmations to 5 --- README.md | 2 +- lib/src/lightwallet.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7072890..e8f81db 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Run `zecwallet-cli help` to see a list of all commands. ### Note Management Zecwallet-CLI does automatic note and utxo management, which means it doesn't allow you to manually select which address to send outgoing transactions from. It follows these principles: * Defaults to sending shielded transactions, even if you're sending to a transparent address -* Sapling funds need at least 4 confirmations before they can be spent +* Sapling funds need at least 5 confirmations before they can be spent * Can select funds from multiple shielded addresses in the same transaction * Will automatically shield your transparent funds at the first opportunity * When sending an outgoing transaction to a shielded address, Zecwallet-CLI can decide to use the transaction to additionally shield your transparent funds (i.e., send your transparent funds to your own shielded address in the same transaction) diff --git a/lib/src/lightwallet.rs b/lib/src/lightwallet.rs index a9db4c0..ec1f91c 100644 --- a/lib/src/lightwallet.rs +++ b/lib/src/lightwallet.rs @@ -1468,7 +1468,7 @@ impl LightWallet { if selected_value < u64::from(target_value) { let e = format!( "Insufficient verified funds (have {}, need {:?}). NOTE: funds need {} confirmations before they can be spent.", - selected_value, target_value, self.config.anchor_offset + selected_value, target_value, self.config.anchor_offset + 1 ); error!("{}", e); return Err(e);