Update message gas limits

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-07-15 19:53:27 +02:00
parent 61156afd90
commit 7b14d445b4
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA
21 changed files with 35 additions and 35 deletions

View File

@ -468,7 +468,7 @@ func getRandomMessages(cg *ChainGen) ([]*types.SignedMessage, error) {
Method: 0, Method: 0,
GasLimit: 10000, GasLimit: 100_000_000,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
} }

View File

@ -70,7 +70,7 @@ func (fm *FundMgr) EnsureAvailable(ctx context.Context, addr, wallet address.Add
From: wallet, From: wallet,
Value: toAdd, Value: toAdd,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
GasLimit: 1000000, GasLimit: 100_000_000,
Method: builtin.MethodsMarket.AddBalance, Method: builtin.MethodsMarket.AddBalance,
Params: params, Params: params,
}) })

View File

@ -179,7 +179,7 @@ func TestForkHeightTriggers(t *testing.T) {
To: builtin.InitActorAddr, To: builtin.InitActorAddr,
Method: builtin.MethodsInit.Exec, Method: builtin.MethodsInit.Exec,
Params: enc, Params: enc,
GasLimit: 10000, GasLimit: 100_000_000,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
} }
sig, err := cg.Wallet().Sign(ctx, cg.Banker(), m.Cid().Bytes()) sig, err := cg.Wallet().Sign(ctx, cg.Banker(), m.Cid().Bytes())
@ -206,7 +206,7 @@ func TestForkHeightTriggers(t *testing.T) {
Method: 2, Method: 2,
Params: nil, Params: nil,
Nonce: nonce, Nonce: nonce,
GasLimit: 10000, GasLimit: 100_000_000,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
} }
nonce++ nonce++

View File

@ -19,7 +19,7 @@ func TestSignedMessageJsonRoundtrip(t *testing.T) {
Method: 1235126, Method: 1235126,
Value: types.NewInt(123123), Value: types.NewInt(123123),
GasPrice: types.NewInt(1234), GasPrice: types.NewInt(1234),
GasLimit: 9992969384, GasLimit: 100_000_000,
Nonce: 123123, Nonce: 123123,
}, },
} }

View File

@ -935,7 +935,7 @@ var slashConsensusFault = &cli.Command{
From: def, From: def,
Value: types.NewInt(0), Value: types.NewInt(0),
GasPrice: types.NewInt(1), GasPrice: types.NewInt(1),
GasLimit: 10000000, GasLimit: 100_000_000,
Method: builtin.MethodsMiner.ReportConsensusFault, Method: builtin.MethodsMiner.ReportConsensusFault,
Params: enc, Params: enc,
} }

View File

@ -77,7 +77,7 @@ var sendCmd = &cli.Command{
From: fromAddr, From: fromAddr,
To: toAddr, To: toAddr,
Value: types.BigInt(val), Value: types.BigInt(val),
GasLimit: 10000, GasLimit: 100_000_000,
GasPrice: gp, GasPrice: gp,
} }

View File

@ -77,7 +77,7 @@ func sendSmallFundsTxs(ctx context.Context, api api.FullNode, from address.Addre
From: from, From: from,
To: sendSet[rand.Intn(20)], To: sendSet[rand.Intn(20)],
Value: types.NewInt(1), Value: types.NewInt(1),
GasLimit: 100000, GasLimit: 100_000_000,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
} }

View File

@ -281,7 +281,7 @@ func (h *handler) send(w http.ResponseWriter, r *http.Request) {
To: to, To: to,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
GasLimit: 10000, GasLimit: 100_000_000,
}) })
if err != nil { if err != nil {
w.WriteHeader(400) w.WriteHeader(400)
@ -355,7 +355,7 @@ func (h *handler) mkminer(w http.ResponseWriter, r *http.Request) {
To: owner, To: owner,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
GasLimit: 10000, GasLimit: 100_000_000,
}) })
if err != nil { if err != nil {
w.WriteHeader(400) w.WriteHeader(400)
@ -391,7 +391,7 @@ func (h *handler) mkminer(w http.ResponseWriter, r *http.Request) {
Method: builtin.MethodsPower.CreateMiner, Method: builtin.MethodsPower.CreateMiner,
Params: params, Params: params,
GasLimit: 10000000, GasLimit: 100_000_000,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
} }

View File

@ -89,7 +89,7 @@ var noncefix = &cli.Command{
From: addr, From: addr,
To: addr, To: addr,
Value: types.NewInt(1), Value: types.NewInt(1),
GasLimit: 10000, GasLimit: 100_000_000,
GasPrice: types.NewInt(1), GasPrice: types.NewInt(1),
Nonce: i, Nonce: i,
} }

View File

@ -76,7 +76,7 @@ var verifRegAddVerifierCmd = &cli.Command{
From: fromk, From: fromk,
Method: builtin.MethodsVerifiedRegistry.AddVerifier, Method: builtin.MethodsVerifiedRegistry.AddVerifier,
GasPrice: types.NewInt(1), GasPrice: types.NewInt(1),
GasLimit: 300000, GasLimit: 100_000_000,
Params: params, Params: params,
} }
@ -152,7 +152,7 @@ var verifRegVerifyClientCmd = &cli.Command{
From: fromk, From: fromk,
Method: builtin.MethodsVerifiedRegistry.AddVerifiedClient, Method: builtin.MethodsVerifiedRegistry.AddVerifiedClient,
GasPrice: types.NewInt(1), GasPrice: types.NewInt(1),
GasLimit: 300000, GasLimit: 100_000_000,
Params: params, Params: params,
} }

View File

@ -557,7 +557,7 @@ func configureStorageMiner(ctx context.Context, api lapi.FullNode, addr address.
Params: enc, Params: enc,
Value: types.NewInt(0), Value: types.NewInt(0),
GasPrice: gasPrice, GasPrice: gasPrice,
GasLimit: 99999999, GasLimit: 100_000_000,
} }
smsg, err := api.MpoolPushMessage(ctx, msg) smsg, err := api.MpoolPushMessage(ctx, msg)
@ -636,7 +636,7 @@ func createStorageMiner(ctx context.Context, api lapi.FullNode, peerid peer.ID,
Method: builtin.MethodsPower.CreateMiner, Method: builtin.MethodsPower.CreateMiner,
Params: params, Params: params,
GasLimit: 10000000, GasLimit: 100_000_000,
GasPrice: gasPrice, GasPrice: gasPrice,
} }

View File

@ -138,7 +138,7 @@ func (c *ClientNodeAdapter) AddFunds(ctx context.Context, addr address.Address,
From: addr, From: addr,
Value: amount, Value: amount,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
GasLimit: 1000000, GasLimit: 100_000_000,
Method: builtin.MethodsMarket.AddBalance, Method: builtin.MethodsMarket.AddBalance,
}) })
if err != nil { if err != nil {

View File

@ -78,7 +78,7 @@ func (n *ProviderNodeAdapter) PublishDeals(ctx context.Context, deal storagemark
From: mi.Worker, From: mi.Worker,
Value: types.NewInt(0), Value: types.NewInt(0),
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
GasLimit: 1000000, GasLimit: 100_000_000,
Method: builtin.MethodsMarket.PublishStorageDeals, Method: builtin.MethodsMarket.PublishStorageDeals,
Params: params, Params: params,
}) })
@ -175,7 +175,7 @@ func (n *ProviderNodeAdapter) AddFunds(ctx context.Context, addr address.Address
From: addr, From: addr,
Value: amount, Value: amount,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
GasLimit: 1000000, GasLimit: 100_000_000,
Method: builtin.MethodsMarket.AddBalance, Method: builtin.MethodsMarket.AddBalance,
}) })
if err != nil { if err != nil {

View File

@ -44,7 +44,7 @@ func TestMessageFiltering(t *testing.T) {
To: a1, To: a1,
Nonce: 3, Nonce: 3,
Value: types.NewInt(500), Value: types.NewInt(500),
GasLimit: 50, GasLimit: 100_000_000,
GasPrice: types.NewInt(1), GasPrice: types.NewInt(1),
}, },
{ {
@ -52,7 +52,7 @@ func TestMessageFiltering(t *testing.T) {
To: a1, To: a1,
Nonce: 4, Nonce: 4,
Value: types.NewInt(500), Value: types.NewInt(500),
GasLimit: 50, GasLimit: 100_000_000,
GasPrice: types.NewInt(1), GasPrice: types.NewInt(1),
}, },
{ {
@ -60,7 +60,7 @@ func TestMessageFiltering(t *testing.T) {
To: a1, To: a1,
Nonce: 1, Nonce: 1,
Value: types.NewInt(800), Value: types.NewInt(800),
GasLimit: 100, GasLimit: 100_000_000,
GasPrice: types.NewInt(1), GasPrice: types.NewInt(1),
}, },
{ {
@ -68,7 +68,7 @@ func TestMessageFiltering(t *testing.T) {
To: a1, To: a1,
Nonce: 0, Nonce: 0,
Value: types.NewInt(800), Value: types.NewInt(800),
GasLimit: 100, GasLimit: 100_000_000,
GasPrice: types.NewInt(1), GasPrice: types.NewInt(1),
}, },
{ {

View File

@ -76,7 +76,7 @@ func (a *MsigAPI) MsigCreate(ctx context.Context, req uint64, addrs []address.Ad
Method: builtin.MethodsInit.Exec, Method: builtin.MethodsInit.Exec,
Params: enc, Params: enc,
GasPrice: gp, GasPrice: gp,
GasLimit: 1000000, GasLimit: 100_000_000,
Value: val, Value: val,
} }
@ -123,7 +123,7 @@ func (a *MsigAPI) MsigPropose(ctx context.Context, msig address.Address, to addr
Value: types.NewInt(0), Value: types.NewInt(0),
Method: builtin.MethodsMultisig.Propose, Method: builtin.MethodsMultisig.Propose,
Params: enc, Params: enc,
GasLimit: 100000, GasLimit: 100_000_000,
GasPrice: types.NewInt(1), GasPrice: types.NewInt(1),
} }
@ -212,7 +212,7 @@ func (a *MsigAPI) msigApproveOrCancel(ctx context.Context, operation api.MsigPro
Value: types.NewInt(0), Value: types.NewInt(0),
Method: msigResponseMethod, Method: msigResponseMethod,
Params: enc, Params: enc,
GasLimit: 100000, GasLimit: 100_000_000,
GasPrice: types.NewInt(1), GasPrice: types.NewInt(1),
} }

View File

@ -779,7 +779,7 @@ func (a *StateAPI) StateMinerInitialPledgeCollateral(ctx context.Context, maddr
From: maddr, From: maddr,
To: builtin.StorageMarketActorAddr, To: builtin.StorageMarketActorAddr,
Method: builtin.MethodsMarket.VerifyDealsForActivation, Method: builtin.MethodsMarket.VerifyDealsForActivation,
GasLimit: 100000000000, GasLimit: 100_000_000,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
Params: params, Params: params,
}, ts) }, ts)

View File

@ -125,7 +125,7 @@ func (a *PaychAPI) PaychClose(ctx context.Context, addr address.Address) (cid.Ci
Method: builtin.MethodsPaych.Settle, Method: builtin.MethodsPaych.Settle,
Nonce: nonce, Nonce: nonce,
GasLimit: 10000, GasLimit: 100_000_000,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
} }
@ -240,7 +240,7 @@ func (a *PaychAPI) PaychVoucherSubmit(ctx context.Context, ch address.Address, s
Nonce: nonce, Nonce: nonce,
Method: builtin.MethodsPaych.UpdateChannelState, Method: builtin.MethodsPaych.UpdateChannelState,
Params: enc, Params: enc,
GasLimit: 100000, GasLimit: 100_000_000,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
} }

View File

@ -107,7 +107,7 @@ func testStorageNode(ctx context.Context, t *testing.T, waddr address.Address, a
Params: enc, Params: enc,
Value: types.NewInt(0), Value: types.NewInt(0),
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
GasLimit: 1000000, GasLimit: 100_000_000,
} }
_, err = tnd.MpoolPushMessage(ctx, msg) _, err = tnd.MpoolPushMessage(ctx, msg)

View File

@ -37,7 +37,7 @@ func (pm *Manager) createPaych(ctx context.Context, from, to address.Address, am
Value: amt, Value: amt,
Method: builtin.MethodsInit.Exec, Method: builtin.MethodsInit.Exec,
Params: enc, Params: enc,
GasLimit: 1000000, GasLimit: 100_000_000,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
} }
@ -92,7 +92,7 @@ func (pm *Manager) addFunds(ctx context.Context, ch address.Address, from addres
From: from, From: from,
Value: amt, Value: amt,
Method: 0, Method: 0,
GasLimit: 1000000, GasLimit: 100_000_000,
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
} }

View File

@ -117,7 +117,7 @@ func (s SealingAPIAdapter) StateComputeDataCommitment(ctx context.Context, maddr
From: maddr, From: maddr,
Value: types.NewInt(0), Value: types.NewInt(0),
GasPrice: types.NewInt(0), GasPrice: types.NewInt(0),
GasLimit: 9999999999, GasLimit: 100_000_000,
Method: builtin.MethodsMarket.ComputeDataCommitment, Method: builtin.MethodsMarket.ComputeDataCommitment,
Params: ccparams, Params: ccparams,
} }

View File

@ -177,7 +177,7 @@ func (s *WindowPoStScheduler) checkNextRecoveries(ctx context.Context, deadline
Method: builtin.MethodsMiner.DeclareFaultsRecovered, Method: builtin.MethodsMiner.DeclareFaultsRecovered,
Params: enc, Params: enc,
Value: types.NewInt(0), Value: types.NewInt(0),
GasLimit: 10000000, // i dont know help GasLimit: 100_000_000, // i dont know help
GasPrice: types.NewInt(2), GasPrice: types.NewInt(2),
} }
@ -256,7 +256,7 @@ func (s *WindowPoStScheduler) checkNextFaults(ctx context.Context, deadline uint
Method: builtin.MethodsMiner.DeclareFaults, Method: builtin.MethodsMiner.DeclareFaults,
Params: enc, Params: enc,
Value: types.NewInt(0), // TODO: Is there a fee? Value: types.NewInt(0), // TODO: Is there a fee?
GasLimit: 10000000, // i dont know help GasLimit: 100_000_000, // i dont know help
GasPrice: types.NewInt(2), GasPrice: types.NewInt(2),
} }