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

Propagate block bodies #19

Merged
merged 2 commits into from Jun 1, 2022
Merged

Propagate block bodies #19

merged 2 commits into from Jun 1, 2022

Conversation

carver
Copy link
Contributor

@carver carver commented Jun 1, 2022

Pull the full transactions when getting a block, and grab the extra uncle headers. Then package up and push them to trin.

Because we are pulling full transactions now, we don't get the hashes for free. So now, decode transactions once, use the hashes of them to request receipts.

Bonus fix: decode transactions from web3 when they create contracts (to field is empty).

To-Do

  • Clean up commit history

Cute Animal Picture

put a cute animal picture link inside the parentheses

Grab full transactions so that we don't have to retrieve them one at a
time. But then we don't get the transaction hashes, to use when getting
receipts. So we build the hashes manually now, reusing the transaction
encoding from when we build the block bodies.
@carver carver merged commit 67d93e3 into main Jun 1, 2022
@carver carver deleted the propagate-block-bodies branch June 1, 2022 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant