-
Notifications
You must be signed in to change notification settings - Fork 1.4k
polygon: Use BorSpansIndex to calculate span id at block number #16683
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 22 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
6755a40
add SpansIndex tables
antonis19 f309f8b
use correct mdbx db
antonis19 a5d18f6
use spanIndex in MdbxStore
antonis19 3d34e1a
use new SpanIdAt in snapshots
antonis19 29fa088
implement spanRangeIndex
antonis19 13b9f1f
fixing bor mining benchmark
antonis19 3a9ba35
implement Last() for indexer
antonis19 9c19d78
fix test by populating bor span snapshots with valid data
antonis19 e771371
fix snapshot_store tests
antonis19 531d484
remove another SpanIdAt
antonis19 3ddbea3
remove SpanIdAt() from Entity()
antonis19 910d9d6
add tests for Entity()
antonis19 fc02238
add tests for span rotations
antonis19 38f47c3
use LastFrozenId() instead
antonis19 76b4d7d
remove hardcoded table
antonis19 e0ff53e
pass context to NotifySync()
antonis19 c29648e
change signature of LastFrozenEntityId()
antonis19 a10a3d3
Merge branch 'main' of github.com:erigontech/erigon into spans-index
antonis19 7d880ba
fix more merge conflicts
antonis19 193d794
add unit tests for spanRangeIndex
antonis19 60fc408
deprecate legacy SpanIdAt()
antonis19 f63b41d
Merge branch 'main' of github.com:erigontech/erigon into spans-index
antonis19 e44c189
Merge branch 'main' of github.com:erigontech/erigon into spans-index
antonis19 634c8ae
fix lint
antonis19 291e8b6
do not expose db
antonis19 e3b5da9
remove -v flag
antonis19 d91b497
remove DB() method
antonis19 b747191
use correct signature for NoopEntityStore.LastFrozenEntityId()
antonis19 466e4d5
remove context from RegisterObserver
antonis19 069698a
add context cancellation in test
antonis19 80298f6
check if .seg file is empty
antonis19 20b502e
remove context from NotifySync
antonis19 280b858
fix grammar
antonis19 424b929
wrap error
antonis19 28f2f82
optimize error handling
antonis19 59abff6
remove context from handlers
antonis19 362542e
inline heimdallStore creation
antonis19 717e3a3
extract buildSpanIndexFromSnapshots function
antonis19 cd91534
simplify LastEntityId()
antonis19 cf5fe9d
reinstate LastFrozenEntityId() into EntityStore
antonis19 ace4fe0
add t.Cleanup(heimdallStore.Close)
antonis19 3964b21
use t.Cleanup() instead of defer
antonis19 6353797
more t.Cleanup
antonis19 9bf82c5
close .idx file when helper returns
antonis19 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
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.