state.go 693 Bytes
Newer Older
1
2
3
4
5
6
package sealing_state

// State communicates the state of the sector with respect to sealing.
type State int

const (
7
8
9
10
11
12
13
	Unknown         State = iota
	Pending               // sector is still accepting user data
	Failed                // sealing failed
	Sealing               // sector is currently being sealed
	Sealed                // sector has been sealed successfully
	Paused                // sector sealing has been paused and can be resumed
	ReadyForSealing       // staged sector is full and is ready to seal
14
)
15
16
17
18
19
20
21

var labels = [...]string{
	"Unknown",
	"Pending",
	"Failed",
	"Sealing",
	"Sealed",
22
23
	"Paused",
	"ReadyForSealing",
24
25
26
27
28
}

func (el State) String() string {
	return labels[el]
}