-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
47 additions
and
26 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
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package types | ||
|
||
import "fmt" | ||
|
||
// ProverType represents the type of prover. | ||
type ProverType uint8 | ||
|
||
func (r ProverType) String() string { | ||
switch r { | ||
case ProverTypeChunk: | ||
return "prover type chunk" | ||
case ProverTypeBatch: | ||
return "prover type batch" | ||
default: | ||
return fmt.Sprintf("illegal prover type: %d", r) | ||
} | ||
} | ||
|
||
const ( | ||
// ProverTypeUndefined is an unknown prover type | ||
ProverTypeUndefined ProverType = iota | ||
// ProverTypeChunk signals it's a chunk prover, which can prove chunk_tasks | ||
ProverTypeChunk | ||
// ProverTypeBatch signals it's a batch prover, which can prove batch_tasks and bundle_tasks | ||
ProverTypeBatch | ||
) |