set anchor to 0
This commit is contained in:
@@ -16,7 +16,7 @@ pub struct SaplingParams;
|
|||||||
pub struct PubCertificate;
|
pub struct PubCertificate;
|
||||||
|
|
||||||
|
|
||||||
pub const ANCHOR_OFFSET: u32 = 2;
|
pub const ANCHOR_OFFSET: u32 = 0;
|
||||||
|
|
||||||
pub mod grpc_client {
|
pub mod grpc_client {
|
||||||
tonic::include_proto!("cash.z.wallet.sdk.rpc");
|
tonic::include_proto!("cash.z.wallet.sdk.rpc");
|
||||||
|
|||||||
@@ -623,7 +623,7 @@ impl LightWallet {
|
|||||||
)
|
)
|
||||||
} {
|
} {
|
||||||
(Some(min_height), Some(max_height)) => {
|
(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,
|
// Select an anchor ANCHOR_OFFSET back from the target block,
|
||||||
// unless that would be before the earliest block we have.
|
// unless that would be before the earliest block we have.
|
||||||
|
|||||||
Reference in New Issue
Block a user