Questions tagged [gas]
The gas tag has no usage guidance.
25
questions
0
votes
1
answer
23
views
Transaction precedence, transaction priority, bake priority within a block - how is it decided?
What exactly decides the execution order of transactions within a block?
I have read here that baking fees matter, but I am not sure how in particular.
Transactions within past blocks don't seem to be ...
0
votes
2
answers
203
views
When does a contract get gas locked?
Right now I'm iterating over a map (not a big_map) that would have at most 10,000 entries. I know big_map is recommended for a large number of entries, however, I'm testing the limitations of both ...
1
vote
0
answers
49
views
Regarding Tezos Fees estimation
Just wanted to understand where these constants are coming from ? https://github.com/ecadlabs/taquito/blob/master/packages/taquito/src/constants.ts#L1
Also recently the gas limit has been limit to ...
1
vote
1
answer
78
views
Does Tezos largely adopt the gas model from Ethereum?
I'm reading through the Position Paper. Specifically in section 1.3, which covers how Ethereum economically de-incentivizes actors from submitting theoretically unbounded computations to the ...
0
votes
1
answer
26
views
Can a FAILWITH error be caused by improper gas_limit or storage_limit?
Sanity check question: Can a FAILWITH error be caused by improper (too low) values of gas_limit or storage_limit?
I'm guessing the answer is "no", but I'm debugging and stranger things have ...
1
vote
1
answer
48
views
Can't see 35% gas optimization on protocol 009
I looked around and could not see any example of known smart contract (FA1.2, FA2, etc) that is now using less gas then before Florence protocol.
0
votes
1
answer
117
views
Is Tezos blockchain vulnerable to "frontrunning"?
I read an interesting piece about frontrunning in Ethereum. In essense, the problem is this:
In general, frontrunning is the act of getting a transaction first in line in the execution queue, right ...
1
vote
1
answer
106
views
gas_exhausted.operation when sending max balance
Environment: Delphinet using https://delphinet.smartpy.io. I'm connecting to it through the RPC via the java/kotlin library OkHttp.
Steps to reproduce:
Trying to send my max XTZ balance to another ...
2
votes
2
answers
93
views
Michelson gas cost optimizations: any techniques, patterns and rules of thumb
Gas cost is an important topic in smart contract development. We want to maintain the costs as low as possible to allow for more operations in a block. There is a handy gas consumption reference, but ...
0
votes
1
answer
52
views
Translating gas and storage units to XTZ
I'm interested in translating the gas and storage costs I get in response from the node after an operation into XTZ prices. Where could I find this information online?
7
votes
1
answer
123
views
Updated fee constants in Delphi?
I am using the following formula and associated constants to calculate fees: https://tezos.gitlab.io/protocols/003_PsddFKi3.html#more-details-on-fees-and-cost-model
Also referenced here: https://tezos....
0
votes
2
answers
85
views
How can I save the gas cost of operations when running contracts in sandbox pytest?
I am testing smart contracts in sandbox mode using python scripts.
I want to be able to store how much an operation cost. So for example when I get the output of a contract origination after baking a ...
0
votes
1
answer
24
views
Increase gas_limit for tz1 to tz1 transfers
Can 15400 KT gas limit be used as upper limit also for pkh2pkh txs (instead of 10600) or there's risk to incur in some kind of error?
For pkh2pkh I mean a transfer from tz1 to tz1 address.
For pkh2kt ...
3
votes
1
answer
174
views
Gas costs types in Michelson
Gas cost is an important topic in tezos and I would like to understand better
the different types of it that occur in michelson
how they are calculated
Could someone offer me a pointer ?
3
votes
2
answers
2k
views
How to calculate price of gas
In Ethereum one can get the gas price using web3.eth.gasPrice.
In Tezos, does any RPC provide the gas price, or is there a formula to calculate the gas price?
6
votes
1
answer
181
views
Relative gas cost of map vs bigmap
Does there exist a realistic performance benchmark between map/bigmap?
I am looking for a tipping point where it would make more sense to use a big map for gas cost optimization
4
votes
0
answers
73
views
Error too big to serialize within the provided gas bounds. Increasing the gas bounds does not help
I am developing a fairly large set of contracts that interact with each other. I wanted to reorganize and optimized the code and I've added lots of PUSH string "..."; FAILWITH to help me debug. I am ...
3
votes
0
answers
33
views
Contract : opcodes FAILWITH / FAIL - gas usage
If a contract gets to the point where it fails. What is the process in terms of gas usage?
Storage gas (new storage until failure) : reverted
Gas usage (used until failure) : reverted
Gas fee : paid ...
3
votes
1
answer
41
views
Michelson contract files - spaces, new lines and comments
I wanted to check that when a Michelson contract file is created. Do file spaces, new lines and comments increase the gas cost when deployed?
5
votes
1
answer
281
views
Gas consumption in a chain of internal transfers
I am trying to perform a chain of contract calls with internal transfers.
I think my current contracts are very simple, but I run out of gas after only 4 internal transfers:
A script or one of its ...
9
votes
1
answer
1k
views
What is gas on the Tezos network?
This question is related to the fact that I have no understanding for what reason need to increase the gas limit, what will the increase affect and why it is impossible to leave the limit as it is?
I ...
9
votes
2
answers
606
views
What is the difference between fee and gaslimit?
With Ethereum, max fee is gas multiplied by the gas price. But with Tezos, when i construct an operation, the fee is personally set, why is it not computed by gas_limit?
7
votes
2
answers
589
views
Fees in proto 003?
Fees have been updated from proto 002 to proto 003.
Is there a reference document available somewhere that is indicating fee information for tezos proto 003 ?
19
votes
3
answers
742
views
How to calculate gas and storage for an operation?
In protocol 003_PsddFKi3, how can the gas and storage usage be calculated without doing a dry-run in a node?
8
votes
1
answer
156
views
How do baking node choose the transactions from the mempool
Could someone describe how the full node chooses transactions from the mempool that make it into a block.
I suppose there must be some logic that makes a compromise between fees and gas cost but it ...