Files
consensus/pkg/go/choices/choices.go
2025-09-24 04:01:37 -05:00

28 lines
411 B
Go

package choices
// Status represents the status of a block
type Status uint8
const (
Unknown Status = iota
Processing
Rejected
Accepted
)
// String returns string representation
func (s Status) String() string {
switch s {
case Unknown:
return "Unknown"
case Processing:
return "Processing"
case Rejected:
return "Rejected"
case Accepted:
return "Accepted"
default:
return "Invalid"
}
}