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
6dbececb
Commit
6dbececb
authored
Aug 19, 2021
by
董子豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update api for aggregate window-post
parent
1dc88c40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
seal_api.go
seal/seal_api.go
+11
-1
No files found.
seal/seal_api.go
View file @
6dbececb
...
@@ -198,8 +198,18 @@ func AggregateWindowPoStProofs(
...
@@ -198,8 +198,18 @@ func AggregateWindowPoStProofs(
randomnesses
[]
abi
.
SealRandomness
,
randomnesses
[]
abi
.
SealRandomness
,
aggregate
abi
.
RegisteredAggregationProof
,
aggregate
abi
.
RegisteredAggregationProof
,
windowPoStProofs
[]
proof5
.
PoStProof
,
windowPoStProofs
[]
proof5
.
PoStProof
,
sectorCount
uint
,
sectorCount
Arr
[]
uint
,
)
([]
byte
,
error
)
{
)
([]
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
{
return
sb
.
AggregateWindowPoStProofs
(
ctx
,
ffi
.
AggregateWindowPostInfos
{
Randomnesses
:
randomnesses
,
Randomnesses
:
randomnesses
,
AggregateType
:
aggregate
,
AggregateType
:
aggregate
,
...
...
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