fix: wallet recovery
Description
Fixes the wallet recovery.
How Has This Been Tested?
npm run test -- .\features\WalletRecovery.feature
Manually running the daily test.
@@ -353,7 +353,7 @@ where TBackend: WalletBackend + 'static
};
// this returns the index of the vec of hashes we sent it, that is the last hash it knows of.
match client.find_chain_split(request).await {
- Ok(_) => Ok(metadata.utxo_index),
+ Ok(_) => Ok(metadata.utxo_index + 1),
Err(RpcError::RequestFailed(err)) if err.status_code().is_not_found() => {
warn!(target: LOG_TARGET, "Reorg detected: {}", err);
// The node does not know of the last hash we scanned, thus we had a chain split.
