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

Transaction root is not computed correctly #7698

Closed
2 tasks done
joshklop opened this issue Apr 18, 2024 · 1 comment · Fixed by #7718
Closed
2 tasks done

Transaction root is not computed correctly #7698

joshklop opened this issue Apr 18, 2024 · 1 comment · Fixed by #7718
Labels
T-bug Type: bug

Comments

@joshklop
Copy link

joshklop commented Apr 18, 2024

Component

Anvil

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (63072be 2024-04-18T00:17:31.886906635Z)

What command(s) is the bug in?

anvil

Operating System

Linux

Describe the bug

I am running an OP stack devnet with Anvil as the L1. When querying Anvil, the op-node logs the following error (newlines inserted for readability):

WARN [04-17|23:18:45.045] Derivation process temporary error
attempts=2 err="engine stage failed: temp: failed to open calldata source: failed to verify transactions list:
computed 0xf392f0294d88343888010fffe80dbdd2d03c795a7af00cb335d651ed441acdf2
but RPC said 0x1fcae536edd92decfe2fbb3c18daede99d4973f34fe3da2178d8e598058ff010"

The following is the offending Anvil block:

{"hash":"0x2c59b6b2b6c37fa65a3d0b7efc58207ef3ba926d7b261fa559ff357a5aaf3235","parentHash":"0x40d078cc1a2580d9f99819697d534897a67160858387bfbac30abd96a333bcea","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","miner":"0x0000000000000000000000000000000000000000","stateRoot":"0xb1f3824581d887f3e777c4cca682d296b200f7751175d3d84f34bda0c470e51e","transactionsRoot":"0x1fcae536edd92decfe2fbb3c18daede99d4973f34fe3da2178d8e598058ff010","receiptsRoot":"0x4f5e94edaae58e33aa3f0c660dee661f22d47c2185a6dbe0df6d45b6967f34bd","logsBloom":"0x00000001400400000000000000000000600800200000000010000004040001100000000000000010000000000008000000000000000000000000000000000102000080000100000800000000000402000000400000000000000000000000000000100000400000080000000020000000000000000000000000000000000800200000000000000000080000000000000000000008040080200000000800000000000000000000010000000000000404000000000000000000000000000004000000000020000000004000000000041000000000000000000001000000000020000000200000000000000800000000000000000001000000000000000000000000","difficulty":"0x0","number":"0xe","gasLimit":"0x1c9c380","gasUsed":"0x99261","timestamp":"0x66209f2f","totalDifficulty":"0x0","extraData":"0x","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000000","baseFeePerGas":"0xdaba8a9","uncles":[],"transactions":[{"hash":"0x802346e2d920255622556510d8f10c90d069a1ee3321827affa5fff46929e2ec","nonce":"0x23","blockHash":"0x2c59b6b2b6c37fa65a3d0b7efc58207ef3ba926d7b261fa559ff357a5aaf3235","blockNumber":"0xe","transactionIndex":"0x0","from":"0xbb951f343b07a3304cdd46071b2a35e4ec6023c4","to":"0x9a0ae651360a6971612f63b2a1d0d71d7b819a90","value":"0x0","gasPrice":"0xdaba8a9","gas":"0x19823","maxFeePerGas":"0x77359400","maxPriorityFeePerGas":"0x0","input":"0x6a7612020000000000000000000000001f841a0a301720b100ad7d4d29e6f4f49eb1bcdc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000084860f7cda0000000000000000000000001712b01255fbd5449b2120e3a24478a590304f800000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001a4f564d5f4c3143726f7373446f6d61696e4d657373656e676572000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041000000000000000000000000bb951f343b07a3304cdd46071b2a35e4ec6023c400000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000","r":"0xf4b52e404452bb1f4ff46285db60f9fb264bf26621875b8d44b2953c60a6f43f","s":"0x171532b9e43635896742fbf89bb616de91f0e14a1b30a9615f3b49b2108a674","v":"0x0","yParity":"0x0","chainId":"0x7a69","accessList":[],"type":"0x2"},{"hash":"0x4e7d758df128695fb558287143ec71a264b416b6b085e2bf3d86b7faca1f7548","nonce":"0x24","blockHash":"0x2c59b6b2b6c37fa65a3d0b7efc58207ef3ba926d7b261fa559ff357a5aaf3235","blockNumber":"0xe","transactionIndex":"0x1","from":"0xbb951f343b07a3304cdd46071b2a35e4ec6023c4","to":"0x9a0ae651360a6971612f63b2a1d0d71d7b819a90","value":"0x0","gasPrice":"0xdaba8a9","gas":"0x3a434","maxFeePerGas":"0x77359400","maxPriorityFeePerGas":"0x0","input":"0x6a7612020000000000000000000000001f841a0a301720b100ad7d4d29e6f4f49eb1bcdc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000c49623609d0000000000000000000000001712b01255fbd5449b2120e3a24478a590304f8000000000000000000000000032f7e11aba054ef018dc9b55b96ad7b4d37e43cc00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000024c4d66de80000000000000000000000007531e3267665da76f938f4737074da842e8c5c6200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041000000000000000000000000bb951f343b07a3304cdd46071b2a35e4ec6023c400000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000","r":"0x6d6856eabb352bc8455e48cabfec9933440653a78d75c91e1999bedc04fd09d9","s":"0x33f9d581f147bcccfdb5efa213ac5dcc85e355bad8b1e902b86dd465777d5b89","v":"0x1","yParity":"0x1","chainId":"0x7a69","accessList":[],"type":"0x2"},{"hash":"0xace8f4367d25ab16a3771e53cca3eb63505c172557ee617d785a378fac2056bb","nonce":"0x25","blockHash":"0x2c59b6b2b6c37fa65a3d0b7efc58207ef3ba926d7b261fa559ff357a5aaf3235","blockNumber":"0xe","transactionIndex":"0x2","from":"0xbb951f343b07a3304cdd46071b2a35e4ec6023c4","to":"0xc7f2cf4845c6db0e1a1e91ed41bcd0fcc1b0e141","value":"0x0","gasPrice":"0xdaba8a9","gas":"0x71a6","maxFeePerGas":"0x77359400","maxPriorityFeePerGas":"0x0","input":"0x98f34df5","r":"0xecea19fd88c75a1f60ef9aefdbb6321d14343bd083f01d22b7947bbdad8f7656","s":"0x483ba402f491140ba8037ad4aab95c6ec6ee0b21519db62de7b3122b946c45d6","v":"0x1","yParity":"0x1","chainId":"0x7a69","accessList":[],"type":"0x2"},{"hash":"0x04a1a00b24417b009ba71fde3f860917a741ed9ea37c6e2b30b1c5e445e0261d","nonce":"0x26","blockHash":"0x2c59b6b2b6c37fa65a3d0b7efc58207ef3ba926d7b261fa559ff357a5aaf3235","blockNumber":"0xe","transactionIndex":"0x3","from":"0xbb951f343b07a3304cdd46071b2a35e4ec6023c4","to":"0x9a0ae651360a6971612f63b2a1d0d71d7b819a90","value":"0x0","gasPrice":"0xdaba8a9","gas":"0x34ff9","maxFeePerGas":"0x77359400","maxPriorityFeePerGas":"0x0","input":"0x6a7612020000000000000000000000001f841a0a301720b100ad7d4d29e6f4f49eb1bcdc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000000e49623609d0000000000000000000000005817ee29714f723a3ddd43f5fe31a987d5f1dadd0000000000000000000000001b9f0e648a0a4780120a6cd07b952f76560c8f8b00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000044e4a301160000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041000000000000000000000000bb951f343b07a3304cdd46071b2a35e4ec6023c400000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000","r":"0x52bf982daa281f9b9205cf29678a8a7ae6c5a15a60c5713adcb65e5bc168eae4","s":"0x77460ca9a0ed82f8ddffc089cf77f60113c07f4de3f4feca21a8a31950993203","v":"0x1","yParity":"0x1","chainId":"0x7a69","accessList":[],"type":"0x2"},{"hash":"0xbff442d335007d62373e6748a4ed9c30bdd660960213381492aab83afe584cd9","nonce":"0x27","blockHash":"0x2c59b6b2b6c37fa65a3d0b7efc58207ef3ba926d7b261fa559ff357a5aaf3235","blockNumber":"0xe","transactionIndex":"0x4","from":"0xbb951f343b07a3304cdd46071b2a35e4ec6023c4","to":"0xc7f2cf4845c6db0e1a1e91ed41bcd0fcc1b0e141","value":"0x0","gasPrice":"0xdaba8a9","gas":"0x71a6","maxFeePerGas":"0x77359400","maxPriorityFeePerGas":"0x0","input":"0x98f34df5","r":"0x738f6938c81073cd3eebef08ef39c629756373fe13ad1d5099006c9296b33825","s":"0x7152b34b41ae33889bf7e055e16591c3b08fdf3e2908960080c89292d3854b56","v":"0x1","yParity":"0x1","chainId":"0x7a69","accessList":[],"type":"0x2"},{"hash":"0x5379bfc39fdcb2f6ff5e81d76644d53e8573edc1011f1918ef80d5684464b00c","nonce":"0x28","blockHash":"0x2c59b6b2b6c37fa65a3d0b7efc58207ef3ba926d7b261fa559ff357a5aaf3235","blockNumber":"0xe","transactionIndex":"0x5","from":"0xbb951f343b07a3304cdd46071b2a35e4ec6023c4","to":"0x9a0ae651360a6971612f63b2a1d0d71d7b819a90","value":"0x0","gasPrice":"0xdaba8a9","gas":"0x401f2","maxFeePerGas":"0x77359400","maxPriorityFeePerGas":"0x0","input":"0x6a7612020000000000000000000000001f841a0a301720b100ad7d4d29e6f4f49eb1bcdc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000c49623609d000000000000000000000000d9b0f18d42adb3374464a23e3b971b856e8b72a2000000000000000000000000e90454e1a69b9248f38ff09a45680f3a6f3bba8100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000024c4d66de80000000000000000000000007531e3267665da76f938f4737074da842e8c5c6200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041000000000000000000000000bb951f343b07a3304cdd46071b2a35e4ec6023c400000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000","r":"0xa268d27f382680584ce0afaa1d13530c8fe3f2eaac9018e6f2ae4a825cb43301","s":"0x48f88e852b3de0bdb9d0163e7850cabdd97aeeaaf1bbdeed83cc0fbd098b5183","v":"0x0","yParity":"0x0","chainId":"0x7a69","accessList":[],"type":"0x2"}],"size":"0xfa1"}

Happy to be corrected if I'm missing anything.

@joshklop joshklop added the T-bug Type: bug label Apr 18, 2024
@DaniPopes
Copy link
Member

Is it possible for you to share a minimal reproduction?

Also is this a recent regression or has this never worked? Can you check with like a few months old version?

cc @klkvr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants