Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set wallet start scan height to birthday and not 0 (see issue #4807) #4911

Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,11 @@ where
client: &mut BaseNodeWalletRpcClient,
) -> Result<BlockHeader, UtxoScannerError> {
let tip_info = client.get_tip_info().await?;
let chain_height = tip_info.metadata.map(|m| m.height_of_longest_chain()).unwrap_or(0);
let wallet_birthday_height = self.get_birthday_header_height_hash(client).await?.height;
jorgeantonio21 marked this conversation as resolved.
Show resolved Hide resolved
let chain_height = tip_info
.metadata
.map(|m| m.height_of_longest_chain())
.unwrap_or(wallet_birthday_height);
let end_header = client.get_header_by_height(chain_height).await?;
let end_header = BlockHeader::try_from(end_header).map_err(UtxoScannerError::ConversionError)?;

Expand Down