storageminer: log flag for sector status

This commit is contained in:
Łukasz Magiera
2020-01-23 15:18:05 +01:00
parent 02c8ab7839
commit c3a5da8586
7 changed files with 46 additions and 6 deletions
+11
View File
@@ -107,6 +107,15 @@ type StorageMiner interface {
WorkerDone(ctx context.Context, task uint64, res sectorbuilder.SealRes) error
}
type SectorLog struct {
Kind string
Timestamp uint64
Trace string
Message string
}
type SectorInfo struct {
SectorID uint64
State SectorState
@@ -119,6 +128,8 @@ type SectorInfo struct {
Retries uint64
LastErr string
Log []SectorLog
}
type SealedRef struct {