-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from blinklabs-io/feat/stop-chainsync
feat: method to stop chainsync process
- Loading branch information
Showing
2 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
package chainsync | ||
|
||
import ( | ||
"fmt" | ||
) | ||
|
||
// IntersectNotFoundError represents a failure to find a chain intersection | ||
type IntersectNotFoundError struct { | ||
} | ||
|
||
func (e IntersectNotFoundError) Error() string { | ||
return "chain intersection not found" | ||
} | ||
|
||
// StopChainSync is used as a special return value from a RollForward or RollBackward handler function | ||
// to signify that the sync process should be stopped | ||
var StopSyncProcessError = fmt.Errorf("stop sync process") |