Questions tagged [gas-limit]

Question related to either the transaction or block gas limit.

Filter by
Sorted by
Tagged with
3
votes
1answer
334 views

Unreal big gas consumption for contract deploying

I have a big contract (more then 1000 strings of code). I deploy it without any problems. When i estimate the gas consumption let gas_need = Web3Helpers.web3.eth.estimateGas({data: code}); console....
2
votes
1answer
64 views

(Relatively) complex computations on private chain?

Is there any way to get rid of gas limitations (or significantly increase them) to be able to do more or less useful stuff in smart contracts (such as RSA signature verification, defining advanced ...
4
votes
1answer
2k views

How Ethereum estimate the gas for running a contract?

I am new to Ethereum. I know gas limit and gas price well. but still confused in when sending a transaction to run a deployed contract, does Ethereum suggest an estimation of how much gas limit is ...
1
vote
1answer
297 views

Gas Consuption: Deploying contracts from within a contract

I have a contract A that does nothing other than allowing to deploy contracts B and C in functions. Deployment of A exceeds gas limit. Seperate deployment of B and C work fine. So my naive assumption ...
3
votes
2answers
420 views

Garbage collection

For a project I model a tree with each node having some data assosiated. A property of that tree is that under some circumstances a node can get deleted, which automatically makes the whole subtree it ...
2
votes
2answers
5k views

How do I get `gasLimit` in web3?

I am running in a private ethereum network which I init with a genesis.json file that contains "gasLimit": "31415926" Now I am wondering how I can read that via web3, any suggestions? (I want to ...
16
votes
1answer
2k views

Execution of Fallback function with more 2300 gas

I have tested a contract having a fallback function which updated a state variable (cost 5000 gas). I sent an amount of Ether to this contract with 100000 gas limit. The transaction is valid. As ...
3
votes
1answer
455 views

Gas not enough and not able to run functions

I am a new comer to the Ethereum and I am writing a piece of smart contract for my project. I used Win 10 and Mist 0.8.8 with the testnet that started with "R". The contract code has the functions of ...
4
votes
1answer
465 views

For higher priority would it be a good idea to send a transaction with highest gasPrice?

I am little bit lost related to gas refund issue. On the following answer: https://ethereum.stackexchange.com/a/11017/4575 it has been mentioned that: However, if things do get crowded and miners ...
4
votes
1answer
1k views

How to minimize gas consumption during contract creation

I have trouble deploying a contract to the main network and I believe this is due to high gas consumption. An earlier version of the contract worked on the main network. The current version works in ...
7
votes
1answer
1k views

How to call Library Function from a Contract? => [error] The contract code couldn't be stored, please check your gas amount. undefined

When I compiled following code at "https://ethereum.github.io/browser-solidity/" it gives me two Web3 deploy code for: var libraryContract = web3.eth.contract(...); //Web3 deploy code var ...
1
vote
2answers
191 views

How gas used by a miner is verified?

The more gas used, the more profit a miner earns. So miners can simply say that the transaction ran out of gas without even executing the transaction and updating the state. JITVM optimizes the byte-...
6
votes
1answer
587 views

Is it possible that the block gas limit will drop below its current level?

As I found here (What is Gas Limit in Ethereum?) and here (The Ethereum gas limit seems prohibitively low. Will it ever be raised? If so, when and how?), the gas limit is gradually growing (as the ...
3
votes
0answers
484 views

What is the max value of gaslimit in genesis.json?

What is the max number of gaslimit you can set in genesis.json? I'd like to put lots of data in one block, so I need to set max gaslimit in genesis.json.
19
votes
1answer
6k views

Are gas limit in transaction and block gas limit different?

What does gas limit mean? Are there two meanings of gas limit? gas limit in a transaction block gas limit
1
vote
1answer
617 views

flag provided but not defined: -targetgaslimit

I've typed targetgaslimit option, however it has returned the following error. enter preformatted text here flag provided but not defined: -targetgaslimit The following is the command. $ geth --...
7
votes
1answer
1k views

Gas limit won't change [duplicate]

I am currently running a private ethereum chain with 2 nodes. My coinbase address on the main node has plenty of ether so I went to make a transaction but got the error "Gas Limit exceeded". I noticed ...
6
votes
3answers
7k views

Gas limit exceeded on private chain

I am currently running a private ethereum chain with 2 nodes. My coinbase address on the main node has plenty of ether so I went to make a transaction but got the error "Gas Limit exceeded". I noticed ...
6
votes
1answer
480 views

What happens when I send a transaction that exceeds the gas limit of 3,141,592?

What happens when I send a transaction that exceeds the gas limit of 3,141,592? Will the transaction be transmitted to the network but never confirmed? If my gas cost is 4,141,592 for example can 3,...
3
votes
1answer
1k views

How Geth and Parity knows the global gas limit?

As said in Péter Szilágyi post DAO Wars: Your voice on the soft-fork dilemma: Miners supporting the DAO soft-fork can do so by starting Geth 1.4.8 with --dao-soft-fork. This will cause the block ...
3
votes
1answer
189 views

How to check if a mining pool runs the forking client or not? [The DAO]

As Geth and Parity forking version are out, the switch to a soft fork related to The DAO is said to happend on block 1800000 if block gas limit is below or equal to 4M. We can see global gas limit on ...
8
votes
1answer
2k views

Private chain: Maximum size of “data” field in an Ethereum transaction?

The data field can be used to send arbitrary data in a transaction. I am aware that the amount of gas required increases with the increase in size of data, but, is there a limit to the size that's ...
4
votes
0answers
134 views

Genesis.json permanence and updating the blockchain

I understand that the initial genesis.json attributes are a permanent thing, and it cannot be changed retroactively. But what I want to know is which parameters are changeable afterwards and how? ...
3
votes
0answers
192 views

“Removed tx from pool: low tx nonce or out of funds” on deploy empty contract

First, I know that there is a similar question, but maybe we're talking about different problems. I'm running geth-1.4.3-stable. My account balance is: 1808.90008114 ether I want to deploy a ...
18
votes
1answer
6k views

How to clear large arrays without blowing the gas limit?

As posted by redditor ethererik in the post GovernMental's 1100 ETH jackpot payout is stuck because it uses too much gas, 1,100 ethers are stuck in limbo because the payout of this GovernMental ...
4
votes
1answer
574 views

How do you provide a GasPrice and GasLimit to overcome the “low tx nonce or out of funds” log message

I am getting the following logged by my private chain geth node when running a test in truffle: removed tx ( TX(ff8ec4f713e64fb25df07d153607e29629c9276b57e0b7e331f17b5a3c31fdd1) Contract: ...
2
votes
0answers
117 views

How to disable gas in PRIVATE-NET [duplicate]

I am running my private net on localhost and keep getting errors like "Gas price too low for acceptance". Is it possible to disable "gas" entirely for testing purposes? TIA
5
votes
1answer
116 views

Is it possible to establish a conditional gas limit in a transaction?

Imagine a contract that rewards the first user that publish a specific big piece of data into the blockchain. The transaction may cost an appreciable cost if the information size is big. The problem ...
12
votes
1answer
358 views

How growing contract storage increases the gas spending?

I have some further questions about this and this threads. For simplicity, let's imagine that I want to create a cryptocurrency on top of ethereum. The contract that "handles" this cryptocurrency ...
14
votes
3answers
837 views

How come I need to specify a higher gasLimit than estimateGas?

If a contract call predictably requires 41043 of gas to be processed as estimated by estimateGas, how come I need to specify gasLimit of ~70000 to be processed?
4
votes
1answer
247 views

How to simulate out of gas events on a private blockchain?

I want to get the error message "Intrinsic gas too low" during a eth.sendTransaction call. Is it possible to simulate the condition of having run out of gas in a private blockchain scenario? Can ...
2
votes
0answers
101 views

Ethereum transaction 'Exceeds block gas limit' [duplicate]

Title says it all! More info: Geth 1.3.5 Windows: eth.getBalance(MY_ADDRESS) 70000000000000000000 eth.sendTransaction({from:"MY_ADDRESS", to:"TARGET_ADDRESS", value: web3.toWei(1, "ether"),...
2
votes
0answers
173 views

Blind Auction: Reveal>>>How to successfully fill data fields [duplicate]

http://solidity.readthedocs.org/en/latest/solidity-by-example.html#id2 Not confident in how to "blind" a secret and reveal it. Using http://emn178.github.io/online-tools/keccak_256.html for the hash....
2
votes
1answer
2k views

Getting “exceeds block gas limit” regardless of gas value [duplicate]

My code is below, setting gas to 21000, but I've tried values up to 100000 and nothing works: eth.sendTransaction({from:eth.coinbase, to:ACCOUNT, value: web3.toWei(30, "ether"), gas:21000}) I've ...
2
votes
1answer
2k views

Why does the transaction exceed block gas limit? [closed]

When I try sending ether to another account, I keep getting the message "Exceeds block gas limit". I changed the gas amount from 5,000 to 100,000 but nothing else happened. Why does the transaction ...
4
votes
2answers
2k views

Contract deployment throws block gas limit error

I'm trying to deploy a smart contract in a test network, using a [meteor DApp][1]. I have this parameters for the genesis block: gasLimit: "0x1388" However, any time I try to deploy any single ...
47
votes
2answers
25k views

Is there a limit for transaction size?

Is there a theoretical limit for transaction data size when you send a transaction to Ethereum network? Ref. Is there a (theoretical) limit for amount of data that a contract can store?
18
votes
2answers
2k views

Can a contract's internal storage keep increasing forever?

In other words, is there a limit on the amount of storage a contract can hold? Suppose a field is an Array for instance, and the contract has a method for adding items. Can I keep calling the ...
15
votes
2answers
2k views

Why was Frontier's “default” gasLimit = 3141592?

I've noticed this number at least in two places: On the Ethereum Network Status web page. In the sources of pyethereum. The number looks suspiciously familiar, and I keep asking myself: "Where ...

1 2 3 4 5
6