feat: CLI command to announce deal to indexers

This commit is contained in:
Dirk McCormick
2021-11-17 12:16:22 +01:00
parent 21e27b8034
commit 501308239f
11 changed files with 163 additions and 0 deletions
+4
View File
@@ -832,6 +832,10 @@ func (sm *StorageMinerAPI) DagstoreGC(ctx context.Context) ([]api.DagstoreShardR
return ret, nil
}
func (sm *StorageMinerAPI) IndexerAnnounceDeal(ctx context.Context, proposalCid cid.Cid) error {
return sm.StorageProvider.AnnounceDealToIndexer(ctx, proposalCid)
}
func (sm *StorageMinerAPI) DealsList(ctx context.Context) ([]api.MarketDeal, error) {
return sm.listDeals(ctx)
}