mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 06:21:02 +00:00
Snowbridge: Synchronize from Snowfork repository (#3761)
This PR includes the following 2 improvements: ## Ethereum Client Author: @yrong ### Original Upstream PRs - https://github.com/Snowfork/polkadot-sdk/pull/123 - https://github.com/Snowfork/polkadot-sdk/pull/125 ### Description The Ethereum client syncs beacon headers as they are finalized, and imports every execution header. When a message is received, it is verified against the import execution header. This is unnecessary, since the execution header can be sent with the message as proof. The recent Deneb Ethereum upgrade made it easier to locate the relevant beacon header from an execution header, and so this improvement was made possible. This resolves a concern @svyatonik had in our initial Rococo PR: https://github.com/paritytech/polkadot-sdk/pull/2522#discussion_r1431270691 ## Inbound Queue Author: @yrong ### Original Upstream PR - https://github.com/Snowfork/polkadot-sdk/pull/118 ### Description When the AH sovereign account (who pays relayer rewards) is depleted, the inbound message will not fail. The relayer just will not receive rewards. Both these changes were done by @yrong, many thanks. ❤️ --------- Co-authored-by: claravanstaden <Cats 4 life!> Co-authored-by: Ron <yrong1997@gmail.com> Co-authored-by: Vincent Geddes <vincent@snowfork.com> Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com>
This commit is contained in:
+71
-23
@@ -1,31 +1,79 @@
|
||||
{
|
||||
"execution_header": {
|
||||
"parent_hash": "0xd82ec63f5c5e6ba61d62f09c188f158e6449b94bdcc31941e68639eec3c4cf7a",
|
||||
"state_root": "0x8b65545fe5f3216b47b6339b9c91ca2b7f1032a970b04246d9e9fb4460ee34c3",
|
||||
"receipts_root": "0x7b1f61b9714c080ef0be014e01657a15f45f0304b477beebc7ca5596c8033095",
|
||||
"block_number": 215
|
||||
"event_log": {
|
||||
"address": "0xeda338e4dc46038493b885327842fd3e301cab39",
|
||||
"topics": [
|
||||
"0x7153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84f",
|
||||
"0xc173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539",
|
||||
"0x5f7060e971b0dc81e63f0aa41831091847d97c1a4693ac450cc128c7214e65e0"
|
||||
],
|
||||
"data": "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002e00a736aa00000000000087d1f7fdfee7f651fabc8bfcb6e086c278b77a7d00e40b54020000000000000000000000000000000000000000000000000000000000"
|
||||
},
|
||||
"message": {
|
||||
"event_log": {
|
||||
"address": "0xeda338e4dc46038493b885327842fd3e301cab39",
|
||||
"topics": [
|
||||
"0x7153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84f",
|
||||
"0xc173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539",
|
||||
"0x5f7060e971b0dc81e63f0aa41831091847d97c1a4693ac450cc128c7214e65e0"
|
||||
"proof": {
|
||||
"block_hash": "0x6a9810efb9581d30c1a5c9074f27c68ea779a8c1ae31c213241df16225f4e131",
|
||||
"tx_index": 0,
|
||||
"receipt_proof": {
|
||||
"keys": [
|
||||
"0xdccdfceea05036f7b61dcdabadc937945d31e68a8d3dfd4dc85684457988c284",
|
||||
"0x4a98e45a319168b0fc6005ce6b744ee9bf54338e2c0784b976a8578d241ced0f"
|
||||
],
|
||||
"data": "0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002e00a736aa00000000000087d1f7fdfee7f651fabc8bfcb6e086c278b77a7d00e40b54020000000000000000000000000000000000000000000000000000000000"
|
||||
"values": [
|
||||
"0xf851a09c01dd6d2d8de951c45af23d3ad00829ce021c04d6c8acbe1612d456ee320d4980808080808080a04a98e45a319168b0fc6005ce6b744ee9bf54338e2c0784b976a8578d241ced0f8080808080808080",
|
||||
"0xf9028c30b9028802f90284018301d205b9010000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000080000000000000000000000000000004000000000080000000000000000000000000000000000010100000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000040004000000000000002000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000200000000000010f90179f85894eda338e4dc46038493b885327842fd3e301cab39e1a0f78bb28d4b1d7da699e5c0bc2be29c2b04b5aab6aacf6298fe5304f9db9c6d7ea000000000000000000000000087d1f7fdfee7f651fabc8bfcb6e086c278b77a7df9011c94eda338e4dc46038493b885327842fd3e301cab39f863a07153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84fa0c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539a05f7060e971b0dc81e63f0aa41831091847d97c1a4693ac450cc128c7214e65e0b8a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002e00a736aa00000000000087d1f7fdfee7f651fabc8bfcb6e086c278b77a7d00e40b54020000000000000000000000000000000000000000000000000000000000"
|
||||
]
|
||||
},
|
||||
"Proof": {
|
||||
"block_hash": "0x48498dbfbcfae53a7f4c289ee00747aceea925f6260c50ead5a33e1c55c40f98",
|
||||
"tx_index": 0,
|
||||
"data": {
|
||||
"keys": [
|
||||
"0x7b1f61b9714c080ef0be014e01657a15f45f0304b477beebc7ca5596c8033095"
|
||||
"execution_proof": {
|
||||
"header": {
|
||||
"slot": 393,
|
||||
"proposer_index": 4,
|
||||
"parent_root": "0x6545b47a614a1dd4cad042a0cdbbf5be347e8ffcdc02c6c64540d5153acebeef",
|
||||
"state_root": "0xb62ac34a8cb82497be9542fe2114410c9f6021855b766015406101a1f3d86434",
|
||||
"body_root": "0x04005fe231e11a5b7b1580cb73b177ae8b338bedd745497e6bb7122126a806db"
|
||||
},
|
||||
"ancestry_proof": {
|
||||
"header_branch": [
|
||||
"0x6545b47a614a1dd4cad042a0cdbbf5be347e8ffcdc02c6c64540d5153acebeef",
|
||||
"0xfa84cc88ca53a72181599ff4eb07d8b444bce023fe2347c3b4f51004c43439d3",
|
||||
"0xcadc8ae211c6f2221c9138e829249adf902419c78eb4727a150baa4d9a02cc9d",
|
||||
"0x33a89962df08a35c52bd7e1d887cd71fa7803e68787d05c714036f6edf75947c",
|
||||
"0x2c9760fce5c2829ef3f25595a703c21eb22d0186ce223295556ed5da663a82cf",
|
||||
"0xe1aa87654db79c8a0ecd6c89726bb662fcb1684badaef5cd5256f479e3c622e1",
|
||||
"0xaa70d5f314e4a1fbb9c362f3db79b21bf68b328887248651fbd29fc501d0ca97",
|
||||
"0x160b6c235b3a1ed4ef5f80b03ee1c76f7bf3f591c92fca9d8663e9221b9f9f0f",
|
||||
"0xf68d7dcd6a07a18e9de7b5d2aa1980eb962e11d7dcb584c96e81a7635c8d2535",
|
||||
"0x1d5f912dfd6697110dd1ecb5cb8e77952eef57d85deb373572572df62bb157fc",
|
||||
"0xffff0ad7e659772f9534c195c815efc4014ef1e1daed4404c06385d11192e92b",
|
||||
"0x6cf04127db05441cd833107a52be852868890e4317e6a02ab47683aa75964220",
|
||||
"0xb7d05f875f140027ef5118a2247bbb84ce8f2f0f1123623085daf7960c329f5f"
|
||||
],
|
||||
"values": [
|
||||
"0xf9028e822080b9028802f90284018301d205b9010000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000080000000000000000000000000000004000000000080000000000000000000000000000000000010100000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000040004000000000000002000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000200000000000010f90179f85894eda338e4dc46038493b885327842fd3e301cab39e1a0f78bb28d4b1d7da699e5c0bc2be29c2b04b5aab6aacf6298fe5304f9db9c6d7ea000000000000000000000000087d1f7fdfee7f651fabc8bfcb6e086c278b77a7df9011c94eda338e4dc46038493b885327842fd3e301cab39f863a07153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84fa0c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539a05f7060e971b0dc81e63f0aa41831091847d97c1a4693ac450cc128c7214e65e0b8a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002e00a736aa00000000000087d1f7fdfee7f651fabc8bfcb6e086c278b77a7d00e40b54020000000000000000000000000000000000000000000000000000000000"
|
||||
]
|
||||
}
|
||||
"finalized_block_root": "0x751414cd97c0624f922b3e80285e9f776b08fa22fd5f87391f2ed7ef571a8d46"
|
||||
},
|
||||
"execution_header": {
|
||||
"Deneb": {
|
||||
"parent_hash": "0x8092290aa21b7751576440f77edd02a94058429ce50e63a92d620951fb25eda2",
|
||||
"fee_recipient": "0x0000000000000000000000000000000000000000",
|
||||
"state_root": "0x96a83e9ddf745346fafcb0b03d57314623df669ed543c110662b21302a0fae8b",
|
||||
"receipts_root": "0xdccdfceea05036f7b61dcdabadc937945d31e68a8d3dfd4dc85684457988c284",
|
||||
"logs_bloom": "0x00000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000080000000400000000000000000000004000000000080000000000000000000000000000000000010100000000000000000000000000000000020000000000000000000000000000000000080000000000000000000000000000040004000000000000002002002000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000080000000000000000000000000000000000100000000000000000200000200000010",
|
||||
"prev_randao": "0x62e309d4f5119d1f5c783abc20fc1a549efbab546d8d0b25ff1cfd58be524e67",
|
||||
"block_number": 393,
|
||||
"gas_limit": 54492273,
|
||||
"gas_used": 199644,
|
||||
"timestamp": 1710552813,
|
||||
"extra_data": "0xd983010d0b846765746888676f312e32312e368664617277696e",
|
||||
"base_fee_per_gas": 7,
|
||||
"block_hash": "0x6a9810efb9581d30c1a5c9074f27c68ea779a8c1ae31c213241df16225f4e131",
|
||||
"transactions_root": "0x2cfa6ed7327e8807c7973516c5c32a68ef2459e586e8067e113d081c3bd8c07d",
|
||||
"withdrawals_root": "0x792930bbd5baac43bcc798ee49aa8185ef76bb3b44ba62b91d86ae569e4bb535",
|
||||
"blob_gas_used": 0,
|
||||
"excess_blob_gas": 0
|
||||
}
|
||||
},
|
||||
"execution_branch": [
|
||||
"0xa6833fa629f3286b6916c6e50b8bf089fc9126bee6f64d0413b4e59c1265834d",
|
||||
"0xb46f0c01805fe212e15907981b757e6c496b0cb06664224655613dcec82505bb",
|
||||
"0xdb56114e00fdd4c1f85c892bf35ac9a89289aaecb1ebd0a96cde606a748b5d71",
|
||||
"0xd3af7c05c516726be7505239e0b9c7cb53d24abce6b91cdb3b3995f0164a75da"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user