Commit 77e3ef77 authored by 董子豪's avatar 董子豪

add test

parent 6dbececb
......@@ -796,16 +796,16 @@ func runSeals(sb *ffiwrapper.Sealer, sbfs *basicfs.Provider, numSectors int, par
Proof: aggregateProof,
})
if ok {
fmt.Println("Aggragate proof is true")
fmt.Println("Aggregate proof is true")
} else{
fmt.Println("Aggragate proof is false")
fmt.Println("Aggregate proof is false")
}
verifyDone := time.Now()
fmt.Println("--------------------------")
fmt.Println("Aggragate Proofs size is %d", len(aggregateProof))
fmt.Println("Aggragate Seal Proofs using %s", verifyAggregate.Sub(aggregateSeal))
fmt.Println("Verify Aggragate Seal Proofs using %s", verifyDone.Sub(verifyAggregate))
fmt.Println("Aggregate Proofs size is %d", len(aggregateProof))
fmt.Println("Aggregate Seal Proofs using %s", verifyAggregate.Sub(aggregateSeal))
fmt.Println("Verify Aggregate Seal Proofs using %s", verifyDone.Sub(verifyAggregate))
fmt.Println("--------------------------")
return sealTimings, sealedSectors, nil
......
......@@ -205,7 +205,7 @@ func AggregateWindowPoStProofs(
}
sectorCount := sectorCountArr[0]
for count := range(sectorCountArr) {
for _, count := range(sectorCountArr) {
if sectorCount != count {
return nil, xerrors.Errorf("Window PoSt challenge count must be equal")
}
......
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