update and rerun cbor gen

This commit is contained in:
Jeromy 2020-03-21 14:17:01 -07:00
parent 21255eddee
commit f3781e8329
8 changed files with 28 additions and 26 deletions

View File

@ -124,7 +124,7 @@ func (t *PaymentInfo) UnmarshalCBOR(r io.Reader) error {
{
if err := t.Channel.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Channel: %w", err)
}
}

View File

@ -7,7 +7,7 @@ import (
"io"
"github.com/filecoin-project/lotus/chain/types"
"github.com/ipfs/go-cid"
cid "github.com/ipfs/go-cid"
cbg "github.com/whyrusleeping/cbor-gen"
xerrors "golang.org/x/xerrors"
)

View File

@ -9,7 +9,7 @@ import (
"github.com/filecoin-project/specs-actors/actors/abi"
"github.com/filecoin-project/specs-actors/actors/crypto"
"github.com/filecoin-project/specs-actors/actors/runtime/exitcode"
"github.com/ipfs/go-cid"
cid "github.com/ipfs/go-cid"
cbg "github.com/whyrusleeping/cbor-gen"
xerrors "golang.org/x/xerrors"
)
@ -133,7 +133,7 @@ func (t *BlockHeader) UnmarshalCBOR(r io.Reader) error {
{
if err := t.Miner.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Miner: %w", err)
}
}
@ -153,7 +153,7 @@ func (t *BlockHeader) UnmarshalCBOR(r io.Reader) error {
} else {
t.Ticket = new(Ticket)
if err := t.Ticket.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Ticket pointer: %w", err)
}
}
@ -163,7 +163,7 @@ func (t *BlockHeader) UnmarshalCBOR(r io.Reader) error {
{
if err := t.EPostProof.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.EPostProof: %w", err)
}
}
@ -198,7 +198,7 @@ func (t *BlockHeader) UnmarshalCBOR(r io.Reader) error {
{
if err := t.ParentWeight.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.ParentWeight: %w", err)
}
}
@ -268,7 +268,7 @@ func (t *BlockHeader) UnmarshalCBOR(r io.Reader) error {
{
if err := t.BLSAggregate.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.BLSAggregate: %w", err)
}
}
@ -302,7 +302,7 @@ func (t *BlockHeader) UnmarshalCBOR(r io.Reader) error {
} else {
t.BlockSig = new(crypto.Signature)
if err := t.BlockSig.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.BlockSig pointer: %w", err)
}
}
@ -707,7 +707,7 @@ func (t *Message) UnmarshalCBOR(r io.Reader) error {
{
if err := t.To.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.To: %w", err)
}
}
@ -716,7 +716,7 @@ func (t *Message) UnmarshalCBOR(r io.Reader) error {
{
if err := t.From.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.From: %w", err)
}
}
@ -739,7 +739,7 @@ func (t *Message) UnmarshalCBOR(r io.Reader) error {
{
if err := t.Value.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Value: %w", err)
}
}
@ -748,7 +748,7 @@ func (t *Message) UnmarshalCBOR(r io.Reader) error {
{
if err := t.GasPrice.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.GasPrice: %w", err)
}
}
@ -852,7 +852,7 @@ func (t *SignedMessage) UnmarshalCBOR(r io.Reader) error {
{
if err := t.Message.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Message: %w", err)
}
}
@ -861,7 +861,7 @@ func (t *SignedMessage) UnmarshalCBOR(r io.Reader) error {
{
if err := t.Signature.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Signature: %w", err)
}
}
@ -1026,7 +1026,7 @@ func (t *Actor) UnmarshalCBOR(r io.Reader) error {
{
if err := t.Balance.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Balance: %w", err)
}
}
@ -1238,7 +1238,7 @@ func (t *BlockMsg) UnmarshalCBOR(r io.Reader) error {
} else {
t.Header = new(BlockHeader)
if err := t.Header.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Header pointer: %w", err)
}
}

2
go.mod
View File

@ -92,7 +92,7 @@ require (
github.com/prometheus/common v0.4.0 // indirect
github.com/stretchr/testify v1.4.0
github.com/whyrusleeping/bencher v0.0.0-20190829221104-bb6607aa8bba
github.com/whyrusleeping/cbor-gen v0.0.0-20200222160900-51052a1e8191
github.com/whyrusleeping/cbor-gen v0.0.0-20200321164527-9340289d0ca7
github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7
github.com/whyrusleeping/pubsub v0.0.0-20131020042734-02de8aa2db3d
go.opencensus.io v0.22.2

2
go.sum
View File

@ -759,6 +759,8 @@ github.com/whyrusleeping/cbor-gen v0.0.0-20200123233031-1cdf64d27158/go.mod h1:X
github.com/whyrusleeping/cbor-gen v0.0.0-20200206220010-03c9665e2a66/go.mod h1:Xj/M2wWU+QdTdRbu/L/1dIZY8/Wb2K9pAhtroQuxJJI=
github.com/whyrusleeping/cbor-gen v0.0.0-20200222160900-51052a1e8191 h1:TeuxLwKwQy612jEhfVhGJTqLsM2EwMi1eJE052ug+NY=
github.com/whyrusleeping/cbor-gen v0.0.0-20200222160900-51052a1e8191/go.mod h1:Xj/M2wWU+QdTdRbu/L/1dIZY8/Wb2K9pAhtroQuxJJI=
github.com/whyrusleeping/cbor-gen v0.0.0-20200321164527-9340289d0ca7 h1:SVU2yhhHHamTPIMT9kk28KSYdO3ykTZeIp5p+6G9qNk=
github.com/whyrusleeping/cbor-gen v0.0.0-20200321164527-9340289d0ca7/go.mod h1:Xj/M2wWU+QdTdRbu/L/1dIZY8/Wb2K9pAhtroQuxJJI=
github.com/whyrusleeping/chunker v0.0.0-20181014151217-fe64bd25879f h1:jQa4QT2UP9WYv2nzyawpKMOCl+Z/jW7djv2/J50lj9E=
github.com/whyrusleeping/chunker v0.0.0-20181014151217-fe64bd25879f/go.mod h1:p9UJB6dDgdPgMJZs7UjUOdulKyRr9fqkS+6JKAInPy8=
github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 h1:EKhdznlJHPMoKr0XTrX+IlJs1LH3lyx2nfr1dOlZ79k=

View File

@ -7,7 +7,7 @@ import (
"io"
"github.com/filecoin-project/specs-actors/actors/abi"
"github.com/ipfs/go-cid"
cid "github.com/ipfs/go-cid"
cbg "github.com/whyrusleeping/cbor-gen"
xerrors "golang.org/x/xerrors"
)
@ -133,7 +133,7 @@ func (t *HelloMessage) UnmarshalCBOR(r io.Reader) error {
{
if err := t.HeaviestTipSetWeight.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.HeaviestTipSetWeight: %w", err)
}
}

View File

@ -110,7 +110,7 @@ func (t *VoucherInfo) UnmarshalCBOR(r io.Reader) error {
} else {
t.Voucher = new(paych.SignedVoucher)
if err := t.Voucher.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Voucher pointer: %w", err)
}
}
@ -294,7 +294,7 @@ func (t *ChannelInfo) UnmarshalCBOR(r io.Reader) error {
{
if err := t.Channel.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Channel: %w", err)
}
}
@ -304,7 +304,7 @@ func (t *ChannelInfo) UnmarshalCBOR(r io.Reader) error {
{
if err := t.Control.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Control: %w", err)
}
}
@ -314,7 +314,7 @@ func (t *ChannelInfo) UnmarshalCBOR(r io.Reader) error {
{
if err := t.Target.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Target: %w", err)
}
}

View File

@ -694,7 +694,7 @@ func (t *SectorInfo) UnmarshalCBOR(r io.Reader) error {
{
if err := t.Ticket.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Ticket: %w", err)
}
}
@ -729,7 +729,7 @@ func (t *SectorInfo) UnmarshalCBOR(r io.Reader) error {
{
if err := t.Seed.UnmarshalCBOR(br); err != nil {
return err
return xerrors.Errorf("unmarshaling t.Seed: %w", err)
}
}