-
Notifications
You must be signed in to change notification settings - Fork 553
eth, core: handle state-sync data in eth/69 messages #1710
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
Merged
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
02a95b5
core: add get all receipts by hash helper
manav2401 24870b9
eth/protocols/eth: include state-sync tx receipt in eth/69 response
manav2401 17aeb75
core: remove GetAllReceiptsByHash function
manav2401 6c1f45c
core/rawdb: remove GetAllReceiptsByHash
manav2401 e5df450
core: track cache hit/miss for bor receipts
manav2401 a8818fc
eth/protocols/eth: exclude state-sync in receipt root calculations
manav2401 d76dac3
eth/protocols/eth: club bor receipt with all tx receipts for a block
manav2401 0956ff6
eth/protocols/eth: exclude state-sync receipts in root hash calculation
manav2401 b0d2603
core: extract and save bor receipts during sync
manav2401 fa463eb
core: assign empty values for missing state-sync receipts
manav2401 7eda28a
core: write bor receipts in kv db
manav2401 bb8b8bf
core: check for empty receipts while writing in kv db
manav2401 7c09388
eth, core: merge state-sync receipt with normal receipts for encoding
manav2401 066c34d
eth/protocols/eth: add state-sync receipt test for eth/69
manav2401 cac109f
eth/protocols/eth: remove logs
manav2401 949cefd
core: check for state-sync using CumulativeGasUsed instead of GasUsed
manav2401 b4dd6cb
core: update small comment
manav2401 598e55f
core: move splitReceipts outside InsertReceiptChain
manav2401 45b9e67
core: decode to pointer of receipt instead of value
manav2401 0b432a6
core: return nil for empty receipts while splitting
manav2401 086bd9c
core: add comment for splitReceipts
manav2401 d2b97b9
core: add tests for split receipts
manav2401 e730355
core: remove encoded field from TestSplitReceipts
manav2401 a8da182
Merge branch 'avalkov/upstream-v1.16.1' into manav/state-sync-receipt…
manav2401 0d4e9df
Merge branch 'avalkov/upstream-v1.16.1' into manav/state-sync-receipt…
manav2401 b016d4f
core: remove unused function
manav2401 306364f
eth/protocols/eth: refactor receipt processing to send via p2p
manav2401 5c32f63
eth/protocols/eth: make copy of receipt packet via re-encoding and de…
manav2401 2b30564
eth/downloader: fix typecasting issue when processing receipts
manav2401 128576b
eth, internal: allow snap sync for testing
manav2401 47b403f
consensus/bor: comment out debug log
manav2401 406e1f5
core: handle nil receipts while inserting
manav2401 c1ac861
core/rawdb: exclude bor receipts from range deletion of state history…
manav2401 a0877e3
core/rawdb: remove logs from tests
manav2401 51a625a
core/rawdb: small fix in tests
manav2401 d9c37bb
core: only write non empty bor receipts
manav2401 69177de
eth/downloader: queue state-sync block receipts
manav2401 65309a1
Merge branch 'avalkov/upstream-v1.16.1' into manav/state-sync-receipt…
manav2401 e60f99a
consensus/bor: undo comment
manav2401 0e3fe02
eth/downloader: add queue test with bor receipts
manav2401 9abcb6d
core/rawdb: don't return if normal receipts are empty
manav2401 6e315bb
core/rawdb: enable empty receipt imports to ancient db
manav2401 3869ad8
core/rawdb: fix misspell
manav2401 c694492
Merge remote-tracking branch 'upstream/avalkov/upstream-v1.16.1' into…
cffls dcca57e
eth, core: move IsSprintEndBlock to types package
manav2401 180832b
core: check for sprint end before split receipts
manav2401 fd60e69
Merge branch 'manav/state-sync-receipts-in-snap-sync' of https://gith…
manav2401 d6aae8e
core, eth: handle bor receipts with non-zero cumulative gas used
manav2401 4b761d3
core: use mock bor config for tests
manav2401 3ea1285
core: derive cumulative gas used before writing receipts
manav2401 f65c748
Merge branch 'develop' into manav/state-sync-receipts-in-snap-sync
manav2401 429fe66
Revert "eth, internal: allow snap sync for testing"
manav2401 025577c
core: populate fields in bor receipts for ancient db, update tests
manav2401 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.