Skip to content

Commit

Permalink
fix: Update validation info in transaction_lifecycle.adoc (#1151)
Browse files Browse the repository at this point in the history
* Update validation info in transaction_lifecycle.adoc

* Update components/Starknet/modules/architecture_and_concepts/pages/Network_Architecture/transaction-life-cycle.adoc

---------

Co-authored-by: odednaor <odednaor@gmail.com>
  • Loading branch information
stoobie and odednaor authored Feb 26, 2024
1 parent 9b913b3 commit 2fc6bbf
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ The high-level steps in the Starknet transaction lifecycle are as follows:

. *Mempool validation:*
The mempool performs a preliminary validation on the transaction. If the transaction is invalid, it does not proceed.
+
Mempool validation in this context is analogous to Ethereum's signature checking, including running the account's `+__validate__+` function on an `INVOKE` transaction, `+__validate_declare__+` on a `DECLARE` transaction, or `+__validate_deploy__+` on a `DEPLOY_ACCOUNT` transaction, ensuring that the current account balance exceeds the value of `max_fee` (prior to v3 transactions), and more.

. *Sequencer validation:* The sequencer performs preliminary validation on the transaction before executing it to ensure that the transaction is still valid. If the transaction is invalid, it does not proceed.
+
Validation in this context is analogous to Ethereum's signature checking, including running the account's `+__validate__+` function, ensuring that the current account balance exceeds the value of `max_fee` (prior to v3 transactions), and more.
This validation stage repeats the same validation run during the Mempool validation.
//in this context is analogous to Ethereum's signature checking, including running the account's `+__validate__+` function on an `INVOKE` transaction, `+__validate_declare__+` on a `DECLARE` transaction, or `+__validate_deploy__+` on a `DEPLOY_ACCOUNT` transaction, ensuring that the current account balance exceeds the value of `max_fee` (prior to v3 transactions), and more.
+
include::partial$snippet_v3_max_price_sidebar.adoc[]

Expand Down

0 comments on commit 2fc6bbf

Please sign in to comment.