Questions tagged [gas-limit]

Question related to either the transaction or block gas limit.

Filter by
Sorted by
Tagged with
2
votes
1answer
266 views

Can we just increase block gas limit and decrease block time to raise TPS? [duplicate]

Given transaction gas limit (TGL), TPS = block gas limit (BGL) / TGL / block time (BT). But we don't increase TPS by simply raising BGL and decreasing BT. What's the downside exactly? Bigger BGL leads ...
3
votes
1answer
5k views

How do you calculate gas limit for transaction with data in Ethereum? [duplicate]

What is the correct algorithm to calculate gas limit for transaction with data in Ethereum?
0
votes
1answer
276 views

infinite gas required of simple external function call

I have minimized the following solidity code generated in remix to demonstrate the issue. This code warns the test001.regester function requires infinite gas which obviously by the code cannot be. ...
0
votes
3answers
163 views

Infinite gas estimate for almost all the functions. Is it normal?

When I deploy contract test net, it shows an error that gas limit exceeds: 3000000 What's the solution? Github Link to the smart contract. And is it normal to have the infinite gas estimate of ...
1
vote
1answer
155 views

How does actual gas unit use differ for the similar transaction?

I transferred ETH 3 times to a smart contract which needs 48734 actual gas units to execute. It took 68932 units for 1st tx and 48734 for remaining 2. Why it took more gas for the first tx than ...
0
votes
1answer
326 views

Getting all the time an “infinite Gas Warning” in the Approve&Call function - Why?

I'm new in developing in smartcontracts. I've got this error: { "Creation": { "codeDepositCost": "856200", "executionCost": "41158", "totalCost": "897358" }, "...
0
votes
1answer
282 views

Does the gas limit (not gas price) affect how quickly a transaction is mined?

Is there any advantage is setting higher gas-limit (not gasprice --> gas-limit)? I know you have to set at least as much as that the smart contract needs to execute, but isn't this amount always the ...
0
votes
1answer
390 views

Why do my FAILED transactions get charged the max gas price?

I tried buying TEL on EtherDelta and had two failed transactions in a row, both charged at the max gas price, one after like 15 mins and the other instantly. How come I get charged for a failed ...
1
vote
2answers
1k views

Is it impossible to empty an Ethereum wallet?

When you send a transaction, you specify a gas price and gas limit. If it doesn't use the entire gas limit, then you get some of the money back. So it would seem to be impossible to know beforehand ...
1
vote
1answer
197 views

Gas minimal limit on private blockchain

I'm trying to set a PoA private Blockchain. I have a problem with the gas limit : Actually, as there's not enough transactions, the gas limit is decreasing continuously . Is there any way I can set in ...
2
votes
0answers
177 views

Can the behaviour of the Ropsten Test net be compared to that of the main net?

can be assumed, that a contract behaves in the same way on the Ropsten Test test as well as on the main net, in terms of gas consumption for example? (I think, that the gas price might be different?) ...
0
votes
1answer
1k views

Why are ether delta gas prices so high as of recently?

My question is about why the gas price and gas limit are so high as of lately on ether delta?
2
votes
1answer
657 views

Constant functions and gas

From what I've seen, constant and view functions do cost gas to run, since there is compute power involved. But geth will allow you to use up to 50,000 gas without asking. Is this correct? Does ...
1
vote
0answers
114 views

What will happen to the gas block limit after Casper?

Is there any reason to believe it'll go up or down significantly?
0
votes
1answer
86 views

Exceeds Gas Limit even though chain fully synced [duplicate]

I'm attempting to send a transactions via Ethereum Wallet, the latest version, and have run geth --syncmode="light" . On the last 200k blocks or so I just opened Ethereum Wallet and let it sync the ...
0
votes
1answer
829 views

Smart Contract Error : Gas required exceeds 300000000

I got the following code from this tutorial : https://medium.com/@merunasgrincalaitis/the-ultimate-end-to-end-tutorial-to-create-and-deploy-a-fully-descentralized-dapp-in-ethereum-18f0cf6d7e0e ...
0
votes
2answers
531 views

Maximum gas consumption of calling a contract method

I want to evaluate the maximum gas consumption (minimum safe gas limit that will not fail) that calling a specific contract method would consume given that I have the contract source code / byte code. ...
0
votes
1answer
913 views

Why view/pure functions need gas?

pragma solidity ^0.4.11; contract Test { function toBytes(address a) public pure returns (bytes b) { assembly { let m := mload(0x40) mstore(add(m, 20), xor(...
0
votes
2answers
734 views

Can't claim EOS tokens. Problem with GAS amount when claim EOS tokens

To make story short,I participated in 167 EOS distribution period, so i've sent ETH amount to their account 0xd0a6E6C54DbC68Db5db3A091B171A77407Ff7ccf. Then i've registered my public EOS key and right ...
1
vote
1answer
70 views

Locked ERC20 paid out as tx-fees to DAO holders

I'm creating a contract where people transact by using locked ERC20 tokens. For example - you'd have 500 of token A locked in the DAO contract. You decide to send 100 of token A to some other ...
0
votes
2answers
191 views

Smart contract not deploying complaining of gas ()

Here is the error it shows Here are the warnings https://gist.github.com/libracoder/82b52edf45e1e389fc0ea832c4b88307
1
vote
2answers
277 views

Different errors while deploying with geth console and truffle

I'm trying to deploy a contract by two different ways, I can't succeed in any. First way: 1. geth console —rinkeby —rpc —rpcapi db,eth,net,web3,personal —unlock="0x..." 2>>geth.log I have ether ...
1
vote
0answers
379 views

my_contract,estimateGas() crashes and “eth_estimateGas” returns incorrect value

I'm trying to estimate Gas for a contract method (both using parity and geth - tried web3py and web3js). Contract is deployed and proven to be working. When I use: estimateGas and geth (providing: ...
0
votes
1answer
376 views

Which contract(s) are exceeding block gas limit? (truffle.js)

Similar to this question, I am trying to debug a setup that is exceeding the default gas limit since upgrading to Truffle 4. Turning on the newly disabled (by default) optimizer seems to be a ...
2
votes
1answer
565 views

Max data storage per block

I'm wondering how much data a smart contract can store per block. Ex: The gas limit is currently ~6,700,000, and it costs 20,000 gas to store 32-byte word. So the EVM can store a maximum of 335 bytes ...
2
votes
0answers
506 views

Remix Testrpc “base fee exceeds gas limit”

I am following this great tutorial from Ed Zynda. I started testrpc and tried to deploy the FuncToken.sol to a Web3 Provider. I managed to connect to the local RPC (have to change protocol from https ...
1
vote
2answers
928 views

Remix -> Function call: Gas required exceeds limit

I keep gettting a "Gas exceeds limit" on a simple function trying to transfer ERC20 Tokens from one wallet to another. My first question is what is the most efficient way to debug such an error ? ...
1
vote
0answers
156 views

High consumption of gas puzzle

Normal transfer works normally with this erc20 token: https://etherscan.io/address/0xe9e74bae31892b6b1c000e009c93438dbd14d723#code When withdrawing from the Etherdelta contract: https://etherscan.io/...
5
votes
1answer
6k views

What is the relationship between Gwei and gas?

I know that a Gwei means 1000000000 wei, but when we send a transaction with 21000 gas, is that mean we send 21000 Gwei? please explain Gwei for me
2
votes
1answer
177 views

Why would gasLimit be read as 4,700,036 instead of 4,712,388?

I have the Block Gas Limit of a private Parity-based blockchain set to 4,712,388. That's the "gasLimit" parameter. But when I view it on a block explorer on the very first block running on this ...
1
vote
3answers
388 views

Private network - all transactions and contracts end up with error

I have set up a private blockchain on my computer with this configuration in genesis.json: { "config": { "chainId": 0, "homesteadBlock": 0, "eip155Block": 0, "...
4
votes
1answer
181 views

How to disable 'Gas requirement not constant' warning in Solidity

I keep getting these warnings when compiling Solidity code: Gas requirement of function [...] unknown or not constant. I know that the gas requirement is not constant, and I've implemented a ...
2
votes
0answers
590 views

Parity error -32010 Transaction cost exceeds current gas limit. Limit: 4703218, got: 4712388. Try decreasing supplied gas

I am playing with a private blockchain. I get this error when I try to deploy a contract: [-32010] Transaction cost exceeds current gas limit. Limit: 4703218, got: 4712388. Try decreasing ...
2
votes
1answer
213 views

“Thawing” mechanism to increate Block Gas Limit?

A smarter man than I (@edmund-edgar) recently told me: Th[e Block Gas Limit of 5000 as noted by the gaslimit=0x1388 parameter] represents the current Ethereum main chain, and the initial gas limit ...
2
votes
1answer
383 views

Parity Error: Transaction gas is too low

In deploying a contract to a private network, I get this error: [-32010] Transaction gas is too low. There is not enough gas to cover minimal cost of the transaction (minimal: 84044, got: 5000). ...
2
votes
1answer
839 views

Transaction cost exceeds current gas limit. (Take II)

I am working on a private blockchain using Parity. I have changed the gasLimit parameter to read "4712388" instead of the default (0x1388) and when I try to truffle migrate a contract, I get this ...
5
votes
1answer
910 views

Why is Block Gas Limit set to 5000?

If you look at the Parity chain spec for mainnet (https://github.com/paritytech/parity/blob/master/ethcore/res/ethereum/foundation.json), you will see this line: "gasLimit": "0x1388", But that ...
2
votes
2answers
3k views

Setting Block Gas Limit in private blockchain?

In a private blockchain with Parity, what is the correct way to set the Block Gas Limit? When I go to "Transfer" and then specify an address in the "recipient" field, a red bar pops up that says: ...
1
vote
0answers
413 views

transaction gas limit in Parity genesis file

Essentially the question is how to set/change the "minimal cost of the transaction" a.k.a. "Gtransaction" value using Parity? On a private blockchain with a custom chain spec file I have a ...
12
votes
2answers
14k views

how to estimate gas cost?

I have a function that iterate through an array, which could cost a lot of gas. But I still want to test out the estimate gas cost, then decide if I should maintain the design or not. function ...
0
votes
1answer
63 views

How to optimize the upload of data onto the blockchain so that the miners will choose the transactions while paying relatively lower gas price?

If I have 10 transactions that would fill 10 blocks worth of gas, would the transactions be more likely to be included in a block if I send 20 transactions that fill 1/2 of each block? What about 40 ...
3
votes
1answer
183 views

What are the differences between Truebit and sharding

Truebit is a recent proposal for building smart contracts on top of Ethereum. Truebit allows outsourcing complex computations to untrusted parties, verifying that the computation was done correctly, ...
4
votes
1answer
96 views

Sharding and gas limit

Currently, the gas limit imposes an upper bound on the amount of computation that can be done in an Ethereum smart contract. Part of the purpose of this limit is to upper-bound the burden on miners ...
3
votes
2answers
161 views

Can i compel miners to privilege my transaction by setting a high gas limit?

I'm trying to send ether to a contract that has a fixed gas price, so I want to know if I can incentive miners to accept my transaction before someone else's by setting a high gas limit. Do miners ...
1
vote
1answer
307 views

How to rescue my Ether [duplicate]

This comes happening being some time with me and i'm getting upset about it. In some terminal, i start geth with: geth -rpc --mine --fast --cache=1024 And in another terminal i start mine with my ...
0
votes
1answer
31 views

Transaction write limits

My function performs a write operation for each "Player" struct in my dapp. However, I don't want to exceed the gas limit for the transaction. Is there an upper limit to the number of writes I can ...
0
votes
1answer
360 views

Estimate Gas too big

Im trying to estimate the gas of this kind of tx to send to a contract var estimateGas = this.web3.eth.estimateGas({ to: toContractAddress, gasPrice: this.web3.toHex(40000000000), nonce: 10, ...
0
votes
1answer
150 views

When a contract runs, does it run on all nodes? [duplicate]

If I have a contract, does it run on all nodes or is a node selected using some method ? If the former, this seems very wasteful of computational power.
3
votes
1answer
159 views

Can someone verify this answer: gasLimit vs. minGasLimit

I would have thought that these are the upper and lower bounds of how much gas can be used in any one transaction. But the mainnet file has the same value for each of these. Can someone explain what ...
1
vote
0answers
492 views

Ethereum transaction stuck, out of gas [closed]

I sent some ethereum from my Coinomi wallet to a Poloniex trading account and it has been over 8 days and it has still not been received. over 30k confirmations and steadily rising and it appears all ...