set anchor_offset to 2, hush has dpow

This commit is contained in:
DenioD
2020-02-19 21:06:06 +01:00
parent ae239e6cb7
commit dfa1422449
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -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);