Create a command to abort sealing calls

This commit is contained in:
Łukasz Magiera
2020-11-11 17:39:12 +01:00
parent 2a3d930933
commit 09f9f871a3
6 changed files with 79 additions and 9 deletions
+4
View File
@@ -300,6 +300,10 @@ func (sm *StorageMinerAPI) SealingSchedDiag(ctx context.Context, doSched bool) (
return sm.StorageMgr.SchedDiag(ctx, doSched)
}
func (sm *StorageMinerAPI) SealingAbort(ctx context.Context, call storiface.CallID) error {
return sm.StorageMgr.Abort(ctx, call)
}
func (sm *StorageMinerAPI) MarketImportDealData(ctx context.Context, propCid cid.Cid, path string) error {
fi, err := os.Open(path)
if err != nil {