lotus/cmd/lotus-seal-worker/rpc.go

20 lines
409 B
Go
Raw Normal View History

2020-03-11 01:57:52 +00:00
package main
import (
2020-03-13 01:37:38 +00:00
"context"
"github.com/filecoin-project/lotus/build"
2020-03-13 00:23:05 +00:00
"github.com/filecoin-project/lotus/storage/sealmgr/advmgr"
2020-03-11 01:57:52 +00:00
"github.com/filecoin-project/specs-storage/storage"
2020-03-11 21:23:16 +00:00
)
2020-03-11 01:57:52 +00:00
2020-03-11 21:23:16 +00:00
type worker struct { // TODO: use advmgr.LocalWorker here
2020-03-13 00:23:05 +00:00
*advmgr.LocalWorker
2020-03-11 01:57:52 +00:00
}
2020-03-13 01:37:38 +00:00
func (w *worker) Version(context.Context) (build.Version, error) {
return build.APIVersion, nil
}
2020-03-11 01:57:52 +00:00
var _ storage.Sealer = &worker{}