-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Eth API: Trace block rewards in the Ethereum JSON-RPC trace_block
output
#11633
Comments
I would like to work on this issue. |
Lotus has two ways of tracing block execution:
The translation is a bit tricky because Filecoin is quite different from Ethereum. For example, a Filecoin trace actually traces messages from a set of blocks called a tipset while an Ethereum trace would only trace a single block. We handle this specific case by "pretending" that this set of blocks is actually a single block. Now, onto what we need to do here... Right now, the only "actions" we trace are calls and contract creations. The goal here is to include block rewards in these traces. These would show up as separate top-level The easiest way to get the rewards is to pull them out of the Filecoin trace. If you look at the code for
|
Now that I've written all this out... this is maybe not the best place to get started unless you have a significant amount of experience with either Filecoin or Ethereum internals. If you don't have a lot of experience with the internals of either, it'll be a bit difficult to get a foothold on this issue (I'm going to remove the "good first issue" tag, that was a bit sloppy on my part). |
At the moment, we skip the "rewards" messages but Ethereum clients will generally include a special trace with type "reward".
The text was updated successfully, but these errors were encountered: