From dfa1422449d5c45b401f7a0801271899603f115f Mon Sep 17 00:00:00 2001 From: DenioD <41270280+DenioD@users.noreply.github.com> Date: Wed, 19 Feb 2020 21:06:06 +0100 Subject: [PATCH] set anchor_offset to 2, hush has dpow --- lib/src/lib.rs | 2 +- lib/src/lightwallet.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/lib.rs b/lib/src/lib.rs index ca28d24..ebd48ee 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -16,7 +16,7 @@ pub struct SaplingParams; pub struct PubCertificate; -pub const ANCHOR_OFFSET: u32 = 4; +pub const ANCHOR_OFFSET: u32 = 2; pub mod grpc_client { tonic::include_proto!("cash.z.wallet.sdk.rpc"); diff --git a/lib/src/lightwallet.rs b/lib/src/lightwallet.rs index e46417d..c16963c 100644 --- a/lib/src/lightwallet.rs +++ b/lib/src/lightwallet.rs @@ -1572,7 +1572,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);