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
d68fd2f4
Commit
d68fd2f4
authored
Jul 31, 2019
by
Łukasz Magiera
Browse files
Always set SectorID in GetSectorSealingStatusByID
parent
9b090e70
Changes
1
Hide whitespace changes
Inline
Side-by-side
bindings.go
View file @
d68fd2f4
...
@@ -335,11 +335,11 @@ func GetSectorSealingStatusByID(sectorBuilderPtr unsafe.Pointer, sectorID uint64
...
@@ -335,11 +335,11 @@ func GetSectorSealingStatusByID(sectorBuilderPtr unsafe.Pointer, sectorID uint64
}
}
if
resPtr
.
seal_status_code
==
C
.
Failed
{
if
resPtr
.
seal_status_code
==
C
.
Failed
{
return
SectorSealingStatus
{
SealStatusCode
:
2
,
SealErrorMsg
:
C
.
GoString
(
resPtr
.
seal_error_msg
)},
nil
return
SectorSealingStatus
{
SectorID
:
sectorID
,
SealStatusCode
:
2
,
SealErrorMsg
:
C
.
GoString
(
resPtr
.
seal_error_msg
)},
nil
}
else
if
resPtr
.
seal_status_code
==
C
.
Pending
{
}
else
if
resPtr
.
seal_status_code
==
C
.
Pending
{
return
SectorSealingStatus
{
SealStatusCode
:
1
},
nil
return
SectorSealingStatus
{
SectorID
:
sectorID
,
SealStatusCode
:
1
},
nil
}
else
if
resPtr
.
seal_status_code
==
C
.
Sealing
{
}
else
if
resPtr
.
seal_status_code
==
C
.
Sealing
{
return
SectorSealingStatus
{
SealStatusCode
:
3
},
nil
return
SectorSealingStatus
{
SectorID
:
sectorID
,
SealStatusCode
:
3
},
nil
}
else
if
resPtr
.
seal_status_code
==
C
.
Sealed
{
}
else
if
resPtr
.
seal_status_code
==
C
.
Sealed
{
commRSlice
:=
goBytes
(
&
resPtr
.
comm_r
[
0
],
CommitmentBytesLen
)
commRSlice
:=
goBytes
(
&
resPtr
.
comm_r
[
0
],
CommitmentBytesLen
)
var
commR
[
CommitmentBytesLen
]
byte
var
commR
[
CommitmentBytesLen
]
byte
...
...
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