add +2 conf in readme. Set anchor_offset to 2
This commit is contained in:
@@ -11,7 +11,7 @@ pub mod commands;
|
||||
#[folder = "zcash-params/"]
|
||||
pub struct SaplingParams;
|
||||
|
||||
pub const ANCHOR_OFFSET: u32 = 4;
|
||||
pub const ANCHOR_OFFSET: u32 = 2;
|
||||
|
||||
|
||||
pub mod grpc_client {
|
||||
|
||||
@@ -1471,7 +1471,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 - 2
|
||||
selected_value, target_value, self.config.anchor_offset
|
||||
);
|
||||
error!("{}", e);
|
||||
return Err(e);
|
||||
|
||||
Reference in New Issue
Block a user