state.go 477 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
package sealing_state

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

const (
	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
)
13
14
15
16
17
18
19
20
21
22
23
24

var labels = [...]string{
	"Unknown",
	"Pending",
	"Failed",
	"Sealing",
	"Sealed",
}

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