Rewind when continuity error

- when isContinuityError occurred, the next action  should be rewind, fixed
This commit is contained in:
Lukas Korba 2023-09-13 09:54:26 +02:00
parent 4b45c15a96
commit d5d4664bf5
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ extension ScanAction: Action {
} catch ZcashError.rustScanBlocks(let errorMsg) {
if isContinuityError(errorMsg) {
await context.update(requestedRewindHeight: batchRange.lowerBound - 10)
await context.update(state: .download)
await context.update(state: .rewind)
return context
} else {
throw ZcashError.rustScanBlocks(errorMsg)