Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase low gas limits everywhere to 10000 #1462

Merged
merged 1 commit into from
Mar 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var sendCmd = &cli.Command{
From: fromAddr,
To: toAddr,
Value: types.BigInt(val),
GasLimit: 1000,
GasLimit: 10000,
GasPrice: types.NewInt(0),
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/lotus-fountain/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (h *handler) send(w http.ResponseWriter, r *http.Request) {
To: to,

GasPrice: types.NewInt(0),
GasLimit: 1000,
GasLimit: 10000,
})
if err != nil {
w.WriteHeader(400)
Expand Down Expand Up @@ -256,7 +256,7 @@ func (h *handler) mkminer(w http.ResponseWriter, r *http.Request) {
To: owner,

GasPrice: types.NewInt(0),
GasLimit: 1000,
GasLimit: 10000,
})
if err != nil {
w.WriteHeader(400)
Expand Down
2 changes: 1 addition & 1 deletion cmd/lotus-shed/nonce-fix.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ var noncefix = &cli.Command{
From: addr,
To: addr,
Value: types.NewInt(1),
GasLimit: 1000,
GasLimit: 10000,
GasPrice: types.NewInt(1),
Nonce: i,
}
Expand Down
4 changes: 2 additions & 2 deletions lotuspond/front/src/chain/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Tagged } from 'borc'

async function pushMessage(client, from, inmsg) {
if(!inmsg.GasLimit) {
inmsg.GasLimit = "1000"
inmsg.GasLimit = "10000"
}
if(!inmsg.GasPrice) {
inmsg.GasPrice = "0"
Expand Down Expand Up @@ -39,4 +39,4 @@ async function pushMessage(client, from, inmsg) {
await client.call('Filecoin.MpoolPushMessage', [inmsg])
}

export default pushMessage
export default pushMessage
2 changes: 1 addition & 1 deletion node/impl/paych/paych.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (a *PaychAPI) PaychClose(ctx context.Context, addr address.Address) (cid.Ci
Method: builtin.MethodsPaych.Settle,
Nonce: nonce,

GasLimit: 500,
GasLimit: 10000,
GasPrice: types.NewInt(0),
}

Expand Down