Commit 6dbececb authored by 董子豪's avatar 董子豪

update api for aggregate window-post

parent 1dc88c40
......@@ -198,8 +198,18 @@ func AggregateWindowPoStProofs(
randomnesses []abi.SealRandomness,
aggregate abi.RegisteredAggregationProof,
windowPoStProofs []proof5.PoStProof,
sectorCount uint,
sectorCountArr []uint,
) ([]byte, error) {
if len(windowPoStProofs) != len(sectorCountArr) {
return nil, xerrors.Errorf("the lenth of windowPoStProofs and sectorCount is not match")
}
sectorCount := sectorCountArr[0]
for count := range(sectorCountArr) {
if sectorCount != count {
return nil, xerrors.Errorf("Window PoSt challenge count must be equal")
}
}
return sb.AggregateWindowPoStProofs(ctx, ffi.AggregateWindowPostInfos{
Randomnesses: randomnesses,
AggregateType: aggregate,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment