Browse Source

set anchor to 0

checkpoints
DenioD 4 years ago
parent
commit
d2887d0787
  1. 2
      lib/src/lib.rs
  2. 2
      lib/src/lightwallet.rs

2
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");

2
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.

Loading…
Cancel
Save