Transaction V1 with Explicit Resource Requests #202
blockiosaurus
started this conversation in
SIMD Discussions
Replies: 1 comment 1 reply
-
|
If the resource requests aren't in the signed data, couldn't an MEV validator set max piority fees for all incoming transactions? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Add explicit resource requests to the
VersionedTransactiontype rather than to the ComputeBudget Program. No longer force inclusion of the ComputeBudget instruction in all transactions and remove it from signed data entirely.Motivation
Core devs have expressed a desire to better define transaction resource constraints by including explicit resource requests in a transaction. Currently this is done by overloading the ComputeBudget Program. However, this has several drawbacks such as transaction size, overhead, and difficulty building transactions. This data would be better represented and more efficient as native fields in the
VersionedTransactionobject.Additionally, most transactions originating from frontend wallets contain a
ComputeBudgetInstructioninjected via the wallet provider. For the sake of clarity and DevEx, these resource request fields should be removed from the signed data entirely to clearly indicate that these fields have no guaranteed originator.Alternatives Considered
New Terminology
ResourceRequest - An enum type for the different resources that can be requested for a transaction's execution.
Resources - Part of the
V1VersionedTransactionvariant. An array of theResourceRequests that can are requested for a transaction.Detailed Design
Impact
Security Considerations
Beta Was this translation helpful? Give feedback.
All reactions