From d2887d07879a93bdd9b2c8bd12504bb977e82fe0 Mon Sep 17 00:00:00 2001 From: DenioD <41270280+DenioD@users.noreply.github.com> Date: Fri, 22 May 2020 17:25:32 +0200 Subject: [PATCH] set anchor to 0 --- 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 ebd48ee..96e8d52 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 = 2; +pub const ANCHOR_OFFSET: u32 = 0; 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 b532904..3139b98 100644 --- a/lib/src/lightwallet.rs +++ b/lib/src/lightwallet.rs @@ -623,7 +623,7 @@ impl LightWallet { ) } { (Some(min_height), Some(max_height)) => { - let target_height = max_height + 1; + let target_height = max_height; // Select an anchor ANCHOR_OFFSET back from the target block, // unless that would be before the earliest block we have.