Transaction lifecycle | Substrate Seminar
Today we discuss the lifecycle of transactions in Substrate and the various types of transactions that exist.
0:00 Transactions are created and signed in a user agent
4:20 Structure of SignedExtensions
9:13 Sending the transaction to the blockchain
11:23 Transaction enters the tx pool
20:25 Transaction is gossipped to other nodes
25:32 Monitoring the status of a tx in the pool
31:56 Included in a block
34:02 Chain Reorganizations and Finality
35:23 When do offchain workers run?
44:28 Tagged Transaction Pool
49:45 Inherents
Other helpful links:
Gav's Sub0 talk on Weight: https://www.crowdcast.io/e/sub0-online/6
Helpful chat from the call:
LG: Why not re-executing the offchain worker for 3’ and 4’, instead of just 5?
Tomasz Drwięga: It depends on the use cases, but yeah we want to enable that in Offchain Workers 2.0
There is even more to this, cause we only run OCW when you are fully synced, and there are use cases where you would like to run OCW for EVERY imported block.
Our current approach is that offchain-workers are triggering some "side-effects" and most likely you don't want these side effects to be triggered multiple times (re-org case). But as I mentioned, we want that to be configurable in the future (hopefully near)
⎼⎼⎼⎼⎼⎼⎼
→ For more videos on blockchain development and building Web 3.0,
subscribe to the channel: https://www.youtube.com/channel/UCSs5vZi0U7qHLkUjF3QnaWg?sub_confirmation=1
→ Website: https://www.parity.io/
→ To stay informed about Parity updates and events,
subscribe to the newsletter: https://www.parity.io/newsletter/
→ Follow us on Twitter (@ParityTech): https://twitter.com/ParityTech
→ Check our code on GitHub: https://github.com/paritytech/
#substrate #rustlang #blockchaindevelopment #transactions