Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-sectorbuilder
Commits
e438c527
Commit
e438c527
authored
Nov 19, 2019
by
laser
Browse files
feat(candidates): provided generated candidates to PoSt generator
parent
37e9d122
Changes
1
Hide whitespace changes
Inline
Side-by-side
bindings_test.go
View file @
e438c527
...
@@ -178,8 +178,11 @@ func TestSectorBuilderLifecycle(t *testing.T) {
...
@@ -178,8 +178,11 @@ func TestSectorBuilderLifecycle(t *testing.T) {
CommR
:
statusA
.
CommR
,
CommR
:
statusA
.
CommR
,
})
})
candidates
,
err
:=
sb
.
GenerateCandidates
(
ptr
,
sectorInfo
,
[
32
]
byte
{},
[]
uint64
{})
require
.
NoError
(
t
,
err
)
// generate a PoSt
// generate a PoSt
proofs
,
err
:=
sb
.
GeneratePoSt
(
ptr
,
sectorInfo
,
[
32
]
byte
{},
[]
sb
.
C
andidate
{}
)
proofs
,
err
:=
sb
.
GeneratePoSt
(
ptr
,
sectorInfo
,
[
32
]
byte
{},
c
andidate
s
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
// verify the PoSt
// verify the PoSt
...
...
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