diff --git a/chain/deals/provider.go b/chain/deals/provider.go index 132e3bf12..bf71e3460 100644 --- a/chain/deals/provider.go +++ b/chain/deals/provider.go @@ -42,7 +42,7 @@ type Provider struct { askLk sync.Mutex sminer *storage.Miner - full api.FullNode + full api.FullNode // TODO: Use a custom protocol or graphsync in the future // TODO: GC @@ -80,8 +80,8 @@ func NewProvider(ds dtypes.MetadataDS, sminer *storage.Miner, dag dtypes.Staging h := &Provider{ sminer: sminer, - dag: dag, - full: fullNode, + dag: dag, + full: fullNode, pricePerByteBlock: types.NewInt(3), // TODO: allow setting minPieceSize: 1, diff --git a/lib/sectorbuilder/sectorbuilder.go b/lib/sectorbuilder/sectorbuilder.go index 0c1aeb66e..f17dd4121 100644 --- a/lib/sectorbuilder/sectorbuilder.go +++ b/lib/sectorbuilder/sectorbuilder.go @@ -142,7 +142,10 @@ func VerifySeal(sectorSize uint64, commR, commD []byte, proverID address.Address copy(seeda[:], seed) proverIDa := addressToProverID(proverID) - return sectorbuilder.VerifySeal(sectorSize, commRa, commDa, proverIDa, ticketa, seeda, sectorID, proof, nil) + return sectorbuilder.VerifySeal(sectorSize, commRa, commDa, proverIDa, ticketa, seeda, sectorID, proof, []sectorbuilder.PublicPieceInfo{{ + Size: UserBytesForSectorSize(sectorSize), // TODO: Provide the real piece size? + CommP: commDa, + }}) } func NewSortedSectorInfo(sectors []SectorInfo) SortedSectorInfo {