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
c42a643b
Commit
c42a643b
authored
Nov 19, 2019
by
laser
Browse files
fix(candidates): use generated candidates in PoSt verification
parent
d4c59669
Changes
1
Show whitespace changes
Inline
Side-by-side
bindings_test.go
View file @
c42a643b
...
@@ -186,7 +186,7 @@ func TestSectorBuilderLifecycle(t *testing.T) {
...
@@ -186,7 +186,7 @@ func TestSectorBuilderLifecycle(t *testing.T) {
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
// verify the PoSt
// verify the PoSt
isValid
,
err
=
sb
.
VerifyPoSt
(
1024
,
sectorInfo
,
[
32
]
byte
{},
proofs
,
[]
sb
.
C
andidate
{}
,
proverID
)
isValid
,
err
=
sb
.
VerifyPoSt
(
1024
,
sectorInfo
,
[
32
]
byte
{},
proofs
,
c
andidate
s
,
proverID
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
require
.
True
(
t
,
isValid
)
require
.
True
(
t
,
isValid
)
...
...
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