Skip to content
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

Error: Digest item must match that calculated #1452

Open
pidb opened this issue Jun 11, 2024 · 0 comments
Open

Error: Digest item must match that calculated #1452

pidb opened this issue Jun 11, 2024 · 0 comments
Labels

Comments

@pidb
Copy link

pidb commented Jun 11, 2024

Our team is providing frontier with parallel EVM features, and when we tested the ERC20 contract, Digest item must match that calculated error occurred, The following are the execution logs of sequential EVM and parallel EVM

sequential EVM

[2024-06-11T06:44:35Z INFO  integration_evm_test::transaction] contract address: 0xdccf1eeb153ef28fdc3cf97d33f60576cf092e9c
[2024-06-11T06:44:35Z INFO  integration_evm_test::transaction] transfer input: a9059cbb0000000000000000000000003325a78425f17a7e487eb5666b2bfd93abb06c700000000000000000000000000000000000000000000000000000000000000064
[2024-06-11T06:44:35Z INFO  integration_evm_test::transaction] to: 0x3325a78425f17a7e487eb5666b2bfd93abb06c70
[2024-06-11T06:44:40Z INFO  sc_service::client::client] 🔨 Initializing Genesis block/state (state: 0x6edf…4959, header-hash: 0xf270…f6f8)
[2024-06-11T06:44:44Z WARN  wasm-runtime] Ran out of free WASM instances
[2024-06-11T06:44:44Z WARN  wasm-runtime] Ran out of free WASM instances
[2024-06-11T06:44:44Z WARN  wasm-runtime] Ran out of free WASM instances
[2024-06-11T06:44:44Z INFO  sc_basic_authorship::basic_authorship] 🙌 Starting consensus session on top of parent 0xf2708250722cd8ce13c386cc441fcf8a5c4824f777c14098211c559f5b41f6f8
[2024-06-11T06:44:44Z INFO  sc_basic_authorship::basic_authorship] 🎁 Prepared block for proposing at 1 (13 ms) [hash: 0x74896f1d274f8390f6fe59bf346d782d2fee3fde5b85a6c705705003c9622a5c; parent_hash: 0xf270…f6f8; extrinsics (3): [0x2694…e248, 0x582c…bb88, 0x3230…ef7a]
[2024-06-11T06:44:44Z INFO  integration_evm_test::client] state root: [253, 158, 36, 115, 65, 251, 206, 190, 87, 10, 98, 250, 155, 215, 131, 144, 35, 140, 106, 18, 193, 193, 61, 168, 26, 33, 246, 46, 67, 139, 118, 204]
[2024-06-11T06:44:44Z INFO  integration_evm_test::client] digest logs: [DigestItem::Consensus([102, 114, 111, 110], [1, 38, 84, 80, 44, 104, 212, 83, 50, 198, 86, 197, 136, 83, 41, 185, 168, 27, 59, 171, 154, 252, 244, 183, 79, 221, 35, 35, 138, 113, 243, 222, 199, 8, 146, 91, 225, 103, 248, 29, 121, 39, 43, 62, 205, 102, 204, 148, 196, 182, 85, 7, 153, 17, 18, 91, 30, 211, 29, 129, 190, 181, 36, 79, 25, 190, 125, 150, 190, 77, 63, 15, 136, 9, 224, 41, 116, 23, 130, 252, 49, 90, 171, 47, 222, 210, 12, 232, 117, 30, 67, 70, 53, 92, 182, 140, 222, 138])]
[2024-06-11T06:44:44Z INFO  integration_evm_test::client] header hash: [116, 137, 111, 29, 39, 79, 131, 144, 246, 254, 89, 191, 52, 109, 120, 45, 47, 238, 63, 222, 91, 133, 166, 199, 5, 112, 80, 3, 201, 98, 42, 92]
[2024-06-11T06:44:44Z INFO  integration_evm_test] alice 0x5050a4f4b3f9338c3472dcc01a87c76a144b3c9c balance of: 70a082310000000000000000000000003325a78425f17a7e487eb5666b2bfd93abb06c70
[2024-06-11T06:44:44Z INFO  integration_evm_test] call resp Ok(ExecutionInfoV2 { exit_reason: Succeed(Returned), value: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100], used_gas: UsedGas { standard: 23928, effective: 61838 }, weight_info: Some(WeightInfo { ref_time_limit: Some(858869026000), proof_size_limit: Some(3067833), ref_time_usage: Some(0), proof_size_usage: Some(4417) }), logs: [] })
[2024-06-11T06:44:44Z INFO  integration_evm_test] chain id: Ok(42)
[2024-06-11T06:44:44Z INFO  integration_evm_test] gas price: Ok(877558000)
[2024-06-11T06:44:44Z INFO  integration_evm_test] transaction statuses: Ok(Some([TransactionStatus { transaction_hash: 0x925be167f81d79272b3ecd66cc94c4b655079911125b1ed31d81beb5244f19be, transaction_index: 0, from: 0x5050a4f4b3f9338c3472dcc01a87c76a144b3c9c, to: None, contract_address: Some(0xdccf1eeb153ef28fdc3cf97d33f60576cf092e9c), logs: [Log { address: 0xdccf1eeb153ef28fdc3cf97d33f60576cf092e9c, topics: [0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x0000000000000000000000000000000000000000000000000000000000000000, 0x0000000000000000000000005050a4f4b3f9338c3472dcc01a87c76a144b3c9c], data: [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255] }], logs_bloom: 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000020000000000000000000800000000000000000000000010000000000000000000012000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000080000002000000000040000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000 }, TransactionStatus { transaction_hash: 0x7d96be4d3f0f8809e029741782fc315aab2fded20ce8751e4346355cb68cde8a, transaction_index: 1, from: 0x5050a4f4b3f9338c3472dcc01a87c76a144b3c9c, to: Some(0xdccf1eeb153ef28fdc3cf97d33f60576cf092e9c), contract_address: None, logs: [Log { address: 0xdccf1eeb153ef28fdc3cf97d33f60576cf092e9c, topics: [0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x0000000000000000000000005050a4f4b3f9338c3472dcc01a87c76a144b3c9c, 0x0000000000000000000000003325a78425f17a7e487eb5666b2bfd93abb06c70], data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100] }], logs_bloom: 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000012000000000000000000000000000000000000001000000800000000000020000000000000000000000000000000000000000000000000000000080000002000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 }]))
test test_seq_propose_multi_erc20_transaction ... ok

parallel EVM

[2024-06-11T06:41:08Z INFO  integration_evm_test::transaction] contract address: 0xdccf1eeb153ef28fdc3cf97d33f60576cf092e9c
[2024-06-11T06:41:08Z INFO  integration_evm_test::transaction] transfer input: a9059cbb0000000000000000000000003325a78425f17a7e487eb5666b2bfd93abb06c700000000000000000000000000000000000000000000000000000000000000064
[2024-06-11T06:41:08Z INFO  integration_evm_test::transaction] to: 0x3325a78425f17a7e487eb5666b2bfd93abb06c70
[2024-06-11T06:41:13Z INFO  sc_service::client::client] 🔨 Initializing Genesis block/state (state: 0x6edf…4959, header-hash: 0xf270…f6f8)
[2024-06-11T06:41:18Z WARN  wasm-runtime] Ran out of free WASM instances
[2024-06-11T06:41:18Z INFO  proposer] 🙌 Starting consensus session on top of parent 0xf2708250722cd8ce13c386cc441fcf8a5c4824f777c14098211c559f5b41f6f8
[2024-06-11T06:41:18Z WARN  wasm-runtime] Ran out of free WASM instances
[2024-06-11T06:41:18Z WARN  wasm-runtime] Ran out of free WASM instances
[2024-06-11T06:41:18Z INFO  frame_executive] apply_extrinsic; ext=14040100e12e
[2024-06-11T06:41:18Z INFO  frame_executive] apply_extrinsic; ext=9d0404070000010000000000000000000000000000000000000000000000000000000000000000ca9a3b00000000000000000000000000000000000000000000000000000000002d31010000000000000000000000000000000000000000000000000000000000dccf1eeb153ef28fdc3cf97d33f60576cf092e9c00000000000000000000000000000000000000000000000000000000000000001101a9059cbb0000000000000000000000003325a78425f17a7e487eb5666b2bfd93abb06c7000000000000000000000000000000000000000000000000000000000000000647700000000000000ca6160d847976a4f556e7c294701a3d2d780b831412add9d167cd46dbd5eebca413bbf199f3eef5bdf8127c920a965814e19406bad3682134e186b5acc7e61d4
[2024-06-11T06:41:18Z INFO  frame_executive] apply_extrinsic; ext=a54604070000000000000000000000000000000000000000000000000000000000000000000000ca9a3b00000000000000000000000000000000000000000000000000000000002d3101000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000006943608060405234801561001057600080fd5b50610041337fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61004660201b60201c565b610291565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156100e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b6101028160025461020960201b610c7c1790919060201c565b60028190555061015d816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461020960201b610c7c1790919060201c565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600080828401905083811015610287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b610e3a806102a06000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806370a082311161005b57806370a08231146101fd578063a457c2d714610255578063a9059cbb146102bb578063dd62ed3e1461032157610088565b8063095ea7b31461008d57806318160ddd146100f357806323b872dd146101115780633950935114610197575b600080fd5b6100d9600480360360408110156100a357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610399565b604051808215151515815260200191505060405180910390f35b6100fb6103b7565b6040518082815260200191505060405180910390f35b61017d6004803603606081101561012757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506103c1565b604051808215151515815260200191505060405180910390f35b6101e3600480360360408110156101ad57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061049a565b604051808215151515815260200191505060405180910390f35b61023f6004803603602081101561021357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061054d565b6040518082815260200191505060405180910390f35b6102a16004803603604081101561026b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610595565b604051808215151515815260200191505060405180910390f35b610307600480360360408110156102d157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610662565b604051808215151515815260200191505060405180910390f35b6103836004803603604081101561033757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610680565b6040518082815260200191505060405180910390f35b60006103ad6103a6610707565b848461070f565b6001905092915050565b6000600254905090565b60006103ce848484610906565b61048f846103da610707565b61048a85604051806060016040528060288152602001610d7060289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610440610707565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610bbc9092919063ffffffff16565b61070f565b600190509392505050565b60006105436104a7610707565b8461053e85600160006104b8610707565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610c7c90919063ffffffff16565b61070f565b6001905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006106586105a2610707565b8461065385604051806060016040528060258152602001610de160259139600160006105cc610707565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610bbc9092919063ffffffff16565b61070f565b6001905092915050565b600061067661066f610707565b8484610906565b6001905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610795576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180610dbd6024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561081b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180610d286022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561098c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610d986025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180610d056023913960400191505060405180910390fd5b610a7d81604051806060016040528060268152602001610d4a602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610bbc9092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610b10816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610c7c90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290610c69576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c2e578082015181840152602081019050610c13565b50505050905090810190601f168015610c5b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600080828401905083811015610cfa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b809150509291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a72315820c7a5ffabf642bda14700b2de42f8c57b36621af020441df825de45fd2b3e1c5c64736f6c634300051000327700000000000000f92509353c347b9ff61abaa35e217d0d057dfeb3ee9e3830ba1a2fabba931e5e4c06f58b950d6f309074896938cad6f073ac62ef785d80cdc160c416c3fe8f43
[2024-06-11T06:41:18Z INFO  parallel_executor::ext] clear_prefix key: [29, 165, 59, 119, 91, 39, 4, 0, 231, 230, 30, 213, 203, 197, 161, 70, 171, 17, 96, 71, 27, 20, 24, 119, 146, 57, 186, 142, 43, 132, 126, 66, 1, 187, 209, 5, 145, 29, 224, 43, 5, 108, 99, 56, 57, 218, 76, 176, 220, 207, 30, 235, 21, 62, 242, 143, 220, 60, 249, 125, 51, 246, 5, 118, 207, 9, 46, 156]
[2024-06-11T06:41:18Z INFO  parallel_executor::ext] clear_prefix key hex: 1da53b775b270400e7e61ed5cbc5a146ab1160471b1418779239ba8e2b847e4201bbd105911de02b056c633839da4cb0dccf1eeb153ef28fdc3cf97d33f60576cf092e9c
[2024-06-11T06:41:18Z INFO  parallel_executor::ext] place_storage evm account storages key
[2024-06-11T06:41:18Z INFO  parallel_executor::ext] place_storage evm account storages key
[2024-06-11T06:41:18Z INFO  frame_executive] apply_extrinsic; ext=9d0404070000010000000000000000000000000000000000000000000000000000000000000000ca9a3b00000000000000000000000000000000000000000000000000000000002d31010000000000000000000000000000000000000000000000000000000000dccf1eeb153ef28fdc3cf97d33f60576cf092e9c00000000000000000000000000000000000000000000000000000000000000001101a9059cbb0000000000000000000000003325a78425f17a7e487eb5666b2bfd93abb06c7000000000000000000000000000000000000000000000000000000000000000647700000000000000ca6160d847976a4f556e7c294701a3d2d780b831412add9d167cd46dbd5eebca413bbf199f3eef5bdf8127c920a965814e19406bad3682134e186b5acc7e61d4
[2024-06-11T06:41:18Z INFO  parallel_executor::ext] place_storage evm account storages key
[2024-06-11T06:41:18Z INFO  parallel_executor::ext] place_storage evm account storages key
[2024-06-11T06:41:18Z INFO  parallel_executor] ⚙️  execution took time: 6ms
[2024-06-11T06:41:18Z INFO  parallel_executor] block hash key: 2013754dd003840aea66b349f8241e25a44704b568d21667356a5a050c11874671a3e3ed8fe286f10100000000000000000000000000000000000000000000000000000000000000 at number 1
[2024-06-11T06:41:18Z INFO  parallel_executor] after extrinsic count: Some([2, 0, 0, 0])
[2024-06-11T06:41:18Z INFO  parallel_executor] after block number: Some([1, 0, 0, 0])
[2024-06-11T06:41:18Z INFO  parallel_executor] after system block hash: None
[2024-06-11T06:41:18Z INFO  parallel_executor] after frontier block hash: None
[2024-06-11T06:41:18Z INFO  parallel_executor] after frontier current receipts: Some([0])
[2024-06-11T06:41:18Z INFO  parallel_executor] after frontier current transaction status: None
[2024-06-11T06:41:18Z INFO  parallel_executor] after digest: None
[2024-06-11T06:41:18Z INFO  proposer] 🎁 Prepared block for proposing at 1 (12 ms) [hash: 0xbe7d4a0c72cba142f7114a6807ec7909c09134694d7b7e983e5ecd8941d358ab; parent_hash: 0xf270…f6f8; ⚡️⚡️⚡️extrinsics (3)
[2024-06-11T06:41:18Z INFO  integration_evm_test::client] state root: [88, 142, 108, 87, 95, 75, 11, 15, 149, 21, 248, 101, 130, 9, 200, 148, 65, 3, 145, 204, 115, 19, 83, 27, 53, 11, 227, 56, 248, 42, 71, 247]
[2024-06-11T06:41:18Z INFO  integration_evm_test::client] digest logs: [DigestItem::Consensus([102, 114, 111, 110], [1, 15, 17, 18, 2, 174, 16, 130, 123, 24, 102, 179, 20, 221, 107, 186, 142, 232, 130, 52, 239, 150, 1, 251, 10, 149, 47, 138, 134, 179, 194, 77, 239, 8, 146, 91, 225, 103, 248, 29, 121, 39, 43, 62, 205, 102, 204, 148, 196, 182, 85, 7, 153, 17, 18, 91, 30, 211, 29, 129, 190, 181, 36, 79, 25, 190, 125, 150, 190, 77, 63, 15, 136, 9, 224, 41, 116, 23, 130, 252, 49, 90, 171, 47, 222, 210, 12, 232, 117, 30, 67, 70, 53, 92, 182, 140, 222, 138])]
[2024-06-11T06:41:18Z INFO  integration_evm_test::client] header hash: [190, 125, 74, 12, 114, 203, 161, 66, 247, 17, 74, 104, 7, 236, 121, 9, 192, 145, 52, 105, 77, 123, 126, 152, 62, 94, 205, 137, 65, 211, 88, 171]
[2024-06-11T06:41:18Z ERROR runtime] panicked at /Users/satoshi/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/401f8a3/substrate/frame/executive/src/lib.rs:617:13:
    Digest item must match that calculated.
[2024-06-11T06:41:18Z WARN  sc_service::client::client] Block prepare storage changes error: Error at calling runtime api: Execution failed: call code executor has error Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
    WASM backtrace:
    error while executing at wasm backtrace:
        0: 0x12d6c8 - <unknown>!rust_begin_unwind
        1: 0xc52b2 - <unknown>!core::panicking::panic_fmt::h2695525abdecb778
        2: 0x26eb9 - <unknown>!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPalletsWithSystem,COnRuntimeUpgrade>::execute_block::hdb6448976c6b0052
        3: 0xbea11 - <unknown>!Core_execute_block
test test_parallel_propose_multi_erc20_transaction ... FAILED

We found that digest logs executed sequentially and in parallel were different

  • Sequential

[DigestItem::Consensus([102, 114, 111, 110], [1, 38, 84, 80, 44, 104, 212, 83, 50, 198, 86, 197, 136, 83, 41, 185, 168, 27, 59, 171, 154, 252, 244, 183, 79, 221, 35, 35, 138, 113, 243, 222, 199, 8, 146, 91, 225, 103, 248, 29, 121, 39, 43, 62, 205, 102, 204, 148, 196, 182, 85, 7, 153, 17, 18, 91, 30, 211, 29, 129, 190, 181, 36, 79, 25, 190, 125, 150, 190, 77, 63, 15, 136, 9, 224, 41, 116, 23, 130, 252, 49, 90, 171, 47, 222, 210, 12, 232, 117, 30, 67, 70, 53, 92, 182, 140, 222, 138])]

  • Parallel

[DigestItem::Consensus([102, 114, 111, 110], [1, 15, 17, 18, 2, 174, 16, 130, 123, 24, 102, 179, 20, 221, 107, 186, 142, 232, 130, 52, 239, 150, 1, 251, 10, 149, 47, 138, 134, 179, 194, 77, 239, 8, 146, 91, 225, 103, 248, 29, 121, 39, 43, 62, 205, 102, 204, 148, 196, 182, 85, 7, 153, 17, 18, 91, 30, 211, 29, 129, 190, 181, 36, 79, 25, 190, 125, 150, 190, 77, 63, 15, 136, 9, 224, 41, 116, 23, 130, 252, 49, 90, 171, 47, 222, 210, 12, 232, 117, 30, 67, 70, 53, 92, 182, 140, 222, 138])]

There are parts of the data that are not identical, 15, 17, 18, 2, 174, 16, 130, 123, 24, 102, 179, 20, 221, 107, 186, 142, 232, 130, 52, 239, 150, 1, 251, 10, 149, 47, 138, 134, 179, 194, 77, 239 and we want to know what is causing this problem

@pidb pidb added the question label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant