Questions tagged [gas-limit]

Question related to either the transaction or block gas limit.

Filter by
Sorted by
Tagged with
1
vote
1answer
78 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
196 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
292 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
413 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
385 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
573 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
516 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
950 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
182 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
402 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
190 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
624 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
225 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
402 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
919 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
967 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
4k 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
438 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 ...
15
votes
2answers
18k 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
68 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
191 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
101 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
211 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
330 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
33 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
389 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
156 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
175 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
504 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 ...
1
vote
1answer
59 views

Awarding members after an ICO: batch or individually?

My tokens will be distributed to users after a crowd sale. The amount they receive depends on how much everyone has donated, so the distribute function must be performed after the end of the crowdsale....
5
votes
3answers
1k views

Contract exceeds block gas limit

I have a fairly complex contract that inherits from a bunch of other contracts, like the OpenZeppelin ERC20 libs and Oraclize libs. When I go to deploy it onto testnet in Remix or Mist, it says that ...
0
votes
1answer
71 views

Will the miner be able to select other transactions in order to fill the block?

Assume a miner selects 10 transactions where their total gas is equivalent to the block gas limit (e.g., 6 million gas). But once the miner executed those transactions, he figured out the actual used ...
2
votes
1answer
1k views

“Error: base fee exceeds gas limit” when using the withdrawal pattern

When I am testing the withdraw() method from "WithdrawalContract" from http://solidity.readthedocs.io/en/develop/common-patterns.html using Remix and testrpc, it reported the following error. Testrpc ...
2
votes
1answer
5k views

Transfer Ether from contract to user addresses

I have code to transfer Ether to an address, as follows: addr.transfer(amount); Unfortunately, when I execute this statement for two transfers, the money never arrives in the addr addresses. I do ...
0
votes
1answer
188 views

change gasLimit parameter into the genesis.json file on azure priavte blockchain

I am trying to deploy a smart contract to an azure blockchain. The contract is deployed without errors but i can't submit transaction to the blockchain through this contract. I guess this is an issue ...
4
votes
2answers
3k views

What is “data” param of rawTx? How to send ETH by using web3

I want to send eth by using web3 on testnet. Source address is 0xbddf0bf3ac858d7fb8a2bdda55884d61779ba5a9. The destination is 0x8005ceb675d2ff8c989cc95354438b9fab568681. I found the example on web3 ...
1
vote
2answers
575 views

Why does f2pool mine almost empty blocks despite large amount of pending txs with 50GWei gas price

We currently (2017-06-21) have a constant large load of pending txs (over 10k on Etherscan). Many of these transactions seem to have 50GWei gas price. Despite that, the f2pool which ethgasstation http:...
4
votes
1answer
748 views

Can Solidity access the gaslimit (not just the remaining gas)?

Solidity has access to the remaining gas via msg.gas which changes from line to line. But I would like to know if I can access the initially submitted gasLimit. Is that possible in Solidity?
1
vote
1answer
458 views

GAS is the fuel of Ethereum network?

I want to know something about GAS...can you please explain... What is the relationship between Gas and Wei / Ether? Can you please give an example of how much the execution of a contract will cost? ...
9
votes
1answer
6k views

Does Gas Limit have any bearing on transaction/mining time?

Gas Price has an obvious impact on how long it takes for the transaction to be mined, but does the Gas Limit have any bearing on transaction time? Based on my understanding it shouldn't, as Gas Limit ...
3
votes
2answers
2k views

What is maximum limit of GAS in a smart contract

Can you please explain the concept GAS in smart contract properly if possible with example. And what is the max limit of GAS in a contract? It is clear if i use more gas i have to pay more...so ...
2
votes
1answer
5k views

How to set default gas limit on Web3?

Tired of getting outputs like "Warning! Error encountered during contract execution [Out of gas]" and having to specify gas limit on every smart contract call like sc.endpoint(parameters, {gas:...
0
votes
1answer
242 views

Is the gas-limit as seen on ethstats measured in wei?

Simple question but I can't seem to find the answer online
2
votes
1answer
379 views

How do I calculate the gas limit for an oraclize query?

I have an oraclize query in my solidity contract and if I don't up the gas limit it doesnt work. My oracalize queries have call backs which call more oraclize queries.
1
vote
0answers
413 views

Avoiding out of gas errors when making Oraclize queries that have callbacks which trigger more queries

I have a contract that I want to automatically check the price of ethereum everyday. right now I have a method called startContract which calls a function setConversion which makes a query set for 1 ...
3
votes
2answers
183 views

Will sharding allow for a much lower gas limit?

The current gas costs are for all nodes to process a transaction or contract function call. Once we have sharding, only a subset on the nodes(1 shard) will process that transaction/contract function ...
8
votes
4answers
14k views

How to increase gas limit in block using geth?

When I try to execute methods from my smart-contract, I get limited by the gas limit in a block and can't do anything. How to change the gas limit in the block?
2
votes
1answer
568 views

Does block difficulty adjust with different gas limits?

Ethereum has a dynamic gas limit, a market governed by the miners. Does the block difficulty change if the gas limit is changed? For example with an increased gas limit from 3 million GAS to 6 million ...