Use constant for anchor offset.

This commit is contained in:
Kevin Gorham 2021-02-25 13:15:09 -05:00
parent 80b65d5f96
commit ad67513afb
No known key found for this signature in database
GPG Key ID: CCA55602DF49FC38
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ use zcash_client_backend::{
},
wallet::{AccountId, OvkPolicy, WalletTransparentOutput},
};
use zcash_client_backend::data_api::wallet::shield_funds;
use zcash_client_backend::data_api::wallet::{shield_funds, ANCHOR_OFFSET};
use zcash_client_sqlite::{
BlockDB,
error::SqliteClientError,
@ -523,7 +523,7 @@ pub unsafe extern "C" fn Java_cash_z_ecc_android_sdk_jni_RustBackend_getVerified
})
.and_then(|anchor| {
(&db_data)
.get_unspent_transparent_utxos(&taddr, anchor - 10)
.get_unspent_transparent_utxos(&taddr, anchor - ANCHOR_OFFSET)
.map_err(|e| format_err!("Error while fetching verified balance: {}", e))
})?
.iter()