From f55ed9ea09e1ed431f59fa3fb4c5cfa413c2c93b Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Fri, 7 Aug 2020 01:21:01 +0200 Subject: [PATCH] Update serialization vectors Signed-off-by: Jakub Sztandera --- api/apistruct/struct.go | 4 ++-- chain/vectors/gen/main.go | 7 +++++-- extern/serialization-vectors | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/api/apistruct/struct.go b/api/apistruct/struct.go index 26f64a7f7..70b81ba27 100644 --- a/api/apistruct/struct.go +++ b/api/apistruct/struct.go @@ -87,7 +87,7 @@ type FullNodeStruct struct { GasEsitmateGasPremium func(context.Context, uint64, address.Address, int64, types.TipSetKey) (types.BigInt, error) `perm:"read"` GasEstimateGasLimit func(context.Context, *types.Message, types.TipSetKey) (int64, error) `perm:"read"` - GasEstimateFeeCapfunc func(context.Context, int64, types.TipSetKey) (types.BigInt, error) `prem:"read"` + GasEstimateFeeCap func(context.Context, int64, types.TipSetKey) (types.BigInt, error) `perm:"read"` SyncState func(context.Context) (*api.SyncState, error) `perm:"read"` SyncSubmitBlock func(ctx context.Context, blk *types.BlockMsg) error `perm:"write"` @@ -435,7 +435,7 @@ func (c *FullNodeStruct) GasEsitmateGasPremium(ctx context.Context, nblocksincl } func (c *FullNodeStruct) GasEstimateFeeCap(ctx context.Context, maxqueueblks int64, tsk types.TipSetKey) (types.BigInt, error) { - return c.Internal.GasEstimateFeeCapfunc(ctx, maxqueueblks, tsk) + return c.Internal.GasEstimateFeeCap(ctx, maxqueueblks, tsk) } func (c *FullNodeStruct) GasEstimateGasLimit(ctx context.Context, msg *types.Message, diff --git a/chain/vectors/gen/main.go b/chain/vectors/gen/main.go index 0978a876f..ce8d137e8 100644 --- a/chain/vectors/gen/main.go +++ b/chain/vectors/gen/main.go @@ -17,6 +17,7 @@ import ( "github.com/filecoin-project/specs-actors/actors/abi" "github.com/filecoin-project/specs-actors/actors/abi/big" "github.com/filecoin-project/specs-actors/actors/builtin/power" + "github.com/filecoin-project/specs-actors/actors/builtin/verifreg" "github.com/filecoin-project/specs-actors/actors/crypto" _ "github.com/filecoin-project/lotus/lib/sigs/bls" @@ -24,6 +25,7 @@ import ( ) func init() { + verifreg.MinVerifiedDealSize = big.NewInt(2048) power.ConsensusMinerMinPower = big.NewInt(2048) } @@ -137,7 +139,8 @@ func MakeUnsignedMessageVectors() []vectors.UnsignedMessageVector { if err != nil { panic(err) } - to, err := address.NewIDAddress(rand.Uint64()) + uint63mask := uint64(1<<63 - 1) + to, err := address.NewIDAddress(rand.Uint64() & uint63mask) if err != nil { panic(err) } @@ -153,7 +156,7 @@ func MakeUnsignedMessageVectors() []vectors.UnsignedMessageVector { GasFeeCap: types.NewInt(rand.Uint64()), GasPremium: types.NewInt(rand.Uint64()), GasLimit: rand.Int63(), - Nonce: rand.Uint64(), + Nonce: rand.Uint64() & (1<<63 - 1), Params: params, } diff --git a/extern/serialization-vectors b/extern/serialization-vectors index 0cef69d48..5bfb92891 160000 --- a/extern/serialization-vectors +++ b/extern/serialization-vectors @@ -1 +1 @@ -Subproject commit 0cef69d481950d24f0e26e2698e585a8bf203913 +Subproject commit 5bfb928910b01ac8b940a693af2884f7f8276211