Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface-test
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
interface-test
Commits
77e3ef77
Commit
77e3ef77
authored
Aug 19, 2021
by
董子豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test
parent
6dbececb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
main.go
cmd/lotus-bench/main.go
+5
-5
seal_api.go
seal/seal_api.go
+2
-2
No files found.
cmd/lotus-bench/main.go
View file @
77e3ef77
...
...
@@ -796,16 +796,16 @@ func runSeals(sb *ffiwrapper.Sealer, sbfs *basicfs.Provider, numSectors int, par
Proof
:
aggregateProof
,
})
if
ok
{
fmt
.
Println
(
"Aggr
a
gate proof is true"
)
fmt
.
Println
(
"Aggr
e
gate proof is true"
)
}
else
{
fmt
.
Println
(
"Aggr
a
gate proof is false"
)
fmt
.
Println
(
"Aggr
e
gate proof is false"
)
}
verifyDone
:=
time
.
Now
()
fmt
.
Println
(
"--------------------------"
)
fmt
.
Println
(
"Aggr
a
gate Proofs size is %d"
,
len
(
aggregateProof
))
fmt
.
Println
(
"Aggr
a
gate Seal Proofs using %s"
,
verifyAggregate
.
Sub
(
aggregateSeal
))
fmt
.
Println
(
"Verify Aggr
a
gate Seal Proofs using %s"
,
verifyDone
.
Sub
(
verifyAggregate
))
fmt
.
Println
(
"Aggr
e
gate Proofs size is %d"
,
len
(
aggregateProof
))
fmt
.
Println
(
"Aggr
e
gate Seal Proofs using %s"
,
verifyAggregate
.
Sub
(
aggregateSeal
))
fmt
.
Println
(
"Verify Aggr
e
gate Seal Proofs using %s"
,
verifyDone
.
Sub
(
verifyAggregate
))
fmt
.
Println
(
"--------------------------"
)
return
sealTimings
,
sealedSectors
,
nil
...
...
seal/seal_api.go
View file @
77e3ef77
...
...
@@ -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"
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment