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.