Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeantonio21 committed Nov 11, 2022
1 parent dfa1248 commit f4fe6d9
Showing 1 changed file with 5 additions and 1 deletion.
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;
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

0 comments on commit f4fe6d9

Please sign in to comment.