Skip to content

Commit

Permalink
Fix sync
Browse files Browse the repository at this point in the history
  • Loading branch information
cypt4 committed Dec 17, 2024
1 parent 21e1e2d commit fcabd5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ OrchardSyncState::UpdateSubtreeRoots(
const mojom::AccountIdPtr& account_id,
uint32_t start_index,
const std::vector<zcash::mojom::SubtreeRootPtr>& roots) {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
return storage_.UpdateSubtreeRoots(account_id, start_index, roots);
// DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
// return storage_.UpdateSubtreeRoots(account_id, start_index, roots);
return OrchardStorage::Result::kSuccess;
}

void OrchardSyncState::ResetDatabase() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void ZCashShieldSyncService::OnGetAccountMeta(
return;
}
account_meta_ = **result;
if (account_meta_->latest_scanned_block_id.value() &&
if (account_meta_->latest_scanned_block_id &&
(account_meta_->latest_scanned_block_id.value() <
account_meta_->account_birthday)) {
error_ = Error{ErrorCode::kFailedToRetrieveAccount, ""};
Expand Down

0 comments on commit fcabd5a

Please sign in to comment.