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

Incorrect balance and refundAddress for contract suicide #10780

Closed
1 task done
iulian-taraboanta opened this issue Sep 9, 2024 · 7 comments
Closed
1 task done

Incorrect balance and refundAddress for contract suicide #10780

iulian-taraboanta opened this issue Sep 9, 2024 · 7 comments
Assignees
Labels
A-rpc Related to the RPC implementation C-bug An unexpected or incorrect behavior

Comments

@iulian-taraboanta
Copy link

iulian-taraboanta commented Sep 9, 2024

Describe the bug

In Block: 19922930, Transaction hash: 0x70395fe67f2fdfa947fc6a15e2819a3b882e8b25760b1160b8bad7b19d1cb1a3

https://etherscan.io/tx/0x70395fe67f2fdfa947fc6a15e2819a3b882e8b25760b1160b8bad7b19d1cb1a3

The result of trace_replayBlockTransactions:

"type": "suicide", "action": { "address": "0xd8d93bf08a5634eac548e17b1741f4f23995cf4a", "balance": "0x0", "refundAddress": "0x0000000000000000000000000000000000000000" }, "result": null, "subtraces": 0, "traceAddress": [ 0 ]

balance and refundAddress are both 0x0

Erigon reply for same transaction:

"action": { "address": "0xd8d93bf08a5634eac548e17b1741f4f23995cf4a", "refundAddress": "0x3b2b1f5fb4a8a4ad3c511970456877a52bb0f383", "balance": "0x6f05b59d3b20000" }, "result": null, "subtraces": 0, "traceAddress": [ 0 ], "type": "suicide" } ],

Another example:
https://etherscan.io/tx/0xd927843e30c6b2bf43103d83bca6abead648eac3cad0d05b1b0eb84cd87de9b6

{ "type": "suicide", "action": { "address": "0xfaddf57d079b01e53d1fe3476cc83e9bcc705854", "balance": "0x0", "refundAddress": "0x0000000000000000000000000000000000000000" }, "result": null, "subtraces": 0, "traceAddress": [ 0, 3, 33 ] },

Steps to reproduce

curl -X POST IP:PORT -H "content-type: application/json" --data '{"id":0,"params":["0x12FFFF2",["trace"]],"method":"trace_replayBlockTransactions","jsonrpc":"2.0"}' | jq

Node logs

No response

Platform(s)

Linux (x86)

What version/commit are you on?

reth Version: 1.0.6

What database version are you on?

Current database version: 2
Local database version: 2

Which chain / network are you on?

mainnet

What type of node are you running?

Archive (default)

What prune config do you use, if any?

No response

If you've built Reth from source, provide the full command you used

No response

Code of Conduct

  • I agree to follow the Code of Conduct
@iulian-taraboanta iulian-taraboanta added C-bug An unexpected or incorrect behavior S-needs-triage This issue needs to be labelled labels Sep 9, 2024
@emhane emhane added A-rpc Related to the RPC implementation and removed C-bug An unexpected or incorrect behavior labels Sep 9, 2024
@emhane emhane self-assigned this Sep 9, 2024
@emhane emhane added C-bug An unexpected or incorrect behavior and removed S-needs-triage This issue needs to be labelled labels Sep 9, 2024
@DaniPopes
Copy link
Member

DaniPopes commented Sep 9, 2024

not sure what you mean by mirroring here

cc @jsvisa

@jsvisa
Copy link
Contributor

jsvisa commented Sep 10, 2024

I think this issue had been fixed by bluealloy/revm#1746

@emhane emhane added the S-blocked This cannot more forward until something else changes label Sep 11, 2024
@emhane
Copy link
Member

emhane commented Sep 11, 2024

blocked by next revm release

@emhane emhane removed the S-blocked This cannot more forward until something else changes label Sep 18, 2024
@emhane
Copy link
Member

emhane commented Sep 20, 2024

@iulian-taraboanta do you have capacity to verify if #11063 fixes this?

@mattsse
Copy link
Collaborator

mattsse commented Sep 20, 2024

optimistically marking this as fixed

@mattsse mattsse closed this as completed Sep 20, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Reth Tracker Sep 20, 2024
@iulian-taraboanta
Copy link
Author

@iulian-taraboanta do you have capacity to verify if #11063 fixes this?

@emhane I verified it, issue is fixed. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation C-bug An unexpected or incorrect behavior
Projects
Archived in project
Development

No branches or pull requests

5 participants