Rewind when continuity error
- when isContinuityError occurred, the next action should be rewind, fixed
This commit is contained in:
parent
4b45c15a96
commit
d5d4664bf5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue