From 5ef7328fe368659b7db23718fe01161a46bb84ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 6 Aug 2020 23:27:23 +0200 Subject: [PATCH] Rerun cbor-gen --- chain/blocksync/cbor_gen.go | 2 +- chain/types/cbor_gen.go | 11 +++-------- node/hello/cbor_gen.go | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/chain/blocksync/cbor_gen.go b/chain/blocksync/cbor_gen.go index a19a05a8d..585421ff5 100644 --- a/chain/blocksync/cbor_gen.go +++ b/chain/blocksync/cbor_gen.go @@ -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" ) diff --git a/chain/types/cbor_gen.go b/chain/types/cbor_gen.go index 1a16a93b2..eee2b3c44 100644 --- a/chain/types/cbor_gen.go +++ b/chain/types/cbor_gen.go @@ -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" ) @@ -632,7 +632,7 @@ func (t *ElectionProof) UnmarshalCBOR(r io.Reader) error { return nil } -var lengthBufMessage = []byte{139} +var lengthBufMessage = []byte{138} func (t *Message) MarshalCBOR(w io.Writer) error { if t == nil { @@ -733,7 +733,7 @@ func (t *Message) UnmarshalCBOR(r io.Reader) error { return fmt.Errorf("cbor input should be of type array") } - if extra != 11 { + if extra != 10 { return fmt.Errorf("cbor input had wrong number of fields") } @@ -802,11 +802,6 @@ func (t *Message) UnmarshalCBOR(r io.Reader) error { return xerrors.Errorf("unmarshaling t.Value: %w", err) } - } - // t.GasPrice (big.Int) (struct) - - { - } // t.GasLimit (int64) (int64) { diff --git a/node/hello/cbor_gen.go b/node/hello/cbor_gen.go index 5400c3f8a..b91386724 100644 --- a/node/hello/cbor_gen.go +++ b/node/hello/cbor_gen.go @@ -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" )