Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Introduce intrinsic fees for transaction validation beyond script & byte costs #529
Introduce intrinsic fees for transaction validation beyond script & byte costs #529
Changes from 40 commits
0568022
769cd39
5cd6f11
0d89c7e
137e3a6
ff4fca4
6988d8e
da1d621
29a5b71
389fb66
7fd36a6
573be18
faa4c6e
6deff2a
6cd617a
ca66b7e
a346591
505a23d
90687c6
7829f93
3465f6f
4fc24ab
46236b0
d013eb3
d1bdaaf
3a88d5b
1d92526
69c00c2
8254b3d
8648ac4
664a49b
797ad78
766c941
7aa7556
a0c5977
1d8e25e
40b9fc7
f911b3d
1328e2a
1d8b1c9
29c0323
f3d57ca
03c32ff
8393b7e
954b22d
1b6e806
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
maxWitness - witnessSize(tx)
also affects the maximum gas=)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused by how max gas is now calculated.
I see in the trait definition of
max_gas()
is:This means:
In this case, there's no mention of gas limit.
In some
checked_transaction
tests (e.g.fee_multiple_signed_inputs
):This means:
In this case, there's no mention of witnesses.
Is there a connection between gas limit and witnesses now? I.e.,$GasLimit = (WitnessBytesLimit - WitnessBytes) * GasPerByte$
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are looking into
max_gas
implementation forCreate
transaction. TheScript
transaction implements this method in another place.The final formula looks like: