fix decode
This commit is contained in:
parent
00c6397ec9
commit
6bf7976add
@ -1,6 +1,7 @@
|
|||||||
package miner
|
package miner
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/filecoin-project/go-address"
|
"github.com/filecoin-project/go-address"
|
||||||
@ -151,7 +152,7 @@ func (s *v0State) LoadSectorsFromSet(filter *bitfield.BitField, filterOut bool)
|
|||||||
}
|
}
|
||||||
|
|
||||||
var oci miner.SectorOnChainInfo
|
var oci miner.SectorOnChainInfo
|
||||||
if err := cbor.DecodeInto(v.Raw, &oci); err != nil {
|
if err := oci.UnmarshalCBOR(bytes.NewReader(v.Raw)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
sset = append(sset, &ChainSectorInfo{
|
sset = append(sset, &ChainSectorInfo{
|
||||||
|
Loading…
Reference in New Issue
Block a user