-
Notifications
You must be signed in to change notification settings - Fork 471
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
ledger: shorter deltas lookback implementation (320 rounds project) #4003
Merged
Merged
Changes from 68 commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
ee16c66
320 rounds: make a separate online accounts tracker (#3800)
algorandskiy 542b4c9
Merge remote-tracking branch 'upstream/master' into feature/320-rounds
algorandskiy 03d1925
Merge pull request #3834 from algorandskiy/feature/320-rounds
algorandskiy a704a6b
320 rounds: transaction tail tracker implementation (#3748)
tsachiherman 3c0938a
320 rounds: online accounts DB support (#3814)
algorandskiy 50674d9
Minor txTail fixes (#3874)
algorandskiy 2d871d2
Fix TestFullCatchpointWriter (#3876)
algorandskiy 01594c7
320 rounds: Add LRU cache into online accounts tracker (#3891)
algorandskiy 6a7c305
Implement onlineroundparamstail (#3851)
ac6d629
Merge remote-tracking branch 'upstream/master' into feature/320-rounds
algorandskiy 0028e06
Post merge fixes
algorandskiy f18bbed
Merge master into feature/320-rounds #3936
algorandskiy 823737d
Merge remote-tracking branch 'upstream/master' into feature/320-rounds
algorandskiy 035def5
Post merge fixes
algorandskiy c10cdda
Merge master into feature/320-rounds #3942
algorandskiy 5b0fa7a
320 rounds: parameterized lookback (#3899)
algorandskiy 1a3e310
More precise online accounts test (#3951)
algorandskiy 4b18677
320 rounds: restore voting data in accountbase (#3885)
algorandskiy 62b7add
320 rounds: expose block header from txtail (#3935)
algorandskiy aae73a1
Merge remote-tracking branch 'upstream/master' into feature/320-rounds
algorandskiy 2922959
merge master into feature/320-rounds #3965
algorandskiy b12d0c1
fix flaky test (#3968)
c82e902
Ledger keyreg test (#3974)
algorandskiy c7dc3c6
320 rounds: Fix onlineroundparamstail (#3979)
3637bdc
TxTail reload test (#3988)
algorandskiy 4c5a0cf
Merge remote-tracking branch 'upstream/master' into feature/320-rounds
algorandskiy 13d5ee8
Merge master into feature/320-rounds #3999
algorandskiy 9c1bef6
Merge remote-tracking branch 'upstream/master' into feature/320-rounds
algorandskiy c47ec59
Merge master into feature/320 rounds #4008
algorandskiy b369b3e
320 rounds: Online Accounts Cache (#3952)
80ef4bf
320 rounds: txtail review fixes (#4031)
algorandskiy 9cf9bb0
Move online queries into onlineAccountsDbQueries (#4032)
algorandskiy 7f1b615
320 rounds testing: test fields setters/getters for baseOnlineAccount…
006f64e
320 rounds: txtail migration fix (#4000)
tolikzinovyev fd69ef0
320 rounds: two stage catchpoint generation (#3928)
tolikzinovyev 89e6574
320 rounds: fix cache incompleteness (#4038)
algorandskiy 50a4dd6
320 rounds: Fix race cond in TestReproducibleCatchpointLabels (#4042)
algorandskiy 619a453
Fix more data races in catchpoint tracker tests. (#4044)
tolikzinovyev 5deec25
320 rounds testing: migration and reload test (#4045)
b528234
Better reporting for TestLedgerMemoryLeak (#4052)
algorandskiy 4dd0ae7
run TestLedgerMemoryLeak
cce 8ec97d0
Revert "run TestLedgerMemoryLeak"
cce 83e047c
Fix flakiness in TestReproducibleCatchpointLabels. (#4063)
tolikzinovyev 179bc27
320 rounds: fix flakiness in `TestReproducibleCatchpointLabels` (#4068)
tolikzinovyev 0b35aaf
320 rounds: Fix migration and reload test (#4065)
1649ae3
320 rounds: feedback for two stage catchpoints (#4059)
tolikzinovyev b7c0c03
320 rounds testing: Catchpoint Label Test (#4061)
af8536d
320 rounds: extended online accounts history for voters (#4037)
algorandskiy a95e74c
Merge remote-tracking branch 'upstream/master' into feature/320-rounds
algorandskiy 4f8ba1b
Post merge fixes
algorandskiy fbe46ed
Merge pull master into feature/320-rounds #4072
algorandskiy d9e493a
320 rounds: memory optimizations (#4058)
cce 201b41b
320 rounds: implement catchpoint persistence (#4075)
algorandskiy bd465cd
Merge remote-tracking branch 'upstream/master' into feature/320-rounds
algorandskiy 2418321
Merge master into feature/320 rounds #4076
algorandskiy b1265e3
320 rounds: use snappy for stage 1 compression (#4078)
cce d968712
Add unfinishedcatchpoints to accountsResetExprs (#4080)
tolikzinovyev 1588656
ledger: onlineacct tracker preserve blocks as voters requires (#4082)
algorandskiy b4d5650
Merge remote-tracking branch 'upstream/master' into feature/320-rounds
algorandskiy df9d772
merge master into feature/320-rounds #4083
algorandskiy 0f9d80d
320 rounds: fix restoring from a catchpoint (#4084)
tolikzinovyev 30160b8
Download DeeperBlockHeaderHistory more blocks in fast catchup. (#4098)
tolikzinovyev 6a9cb0b
Temporary disable empty voting data check (#4097)
algorandskiy 1dc5aa9
Use a utility function to delete catchpoint (data) files. (#4102)
tolikzinovyev 2e3af3a
Discard an unfinished catchpoint after upgrade (#4100)
tolikzinovyev 23639f7
320 rounds: check context expiration in `catchpointtracker` (#4103)
tolikzinovyev e6e5431
Revert a small change related to contexts in catchpoint tracker. (#4112)
tolikzinovyev e3a62c0
Catchpoint tracker persistence tests (#4124)
tolikzinovyev 1be4458
Small improvements in catchpoint tracker tests. (#4134)
tolikzinovyev 1559cfd
A benchmark for onlineAccountsCache.read(). (#4135)
tolikzinovyev 1619cbb
Merge remote-tracking branch 'upstream/master' into feature/320-rounds
algorandskiy 897fcc5
Merge master into feature/320-rounds #4152
algorandskiy 7e41a99
Apply suggestions from code review
cce f75826f
Update ledger/tracker.go
cce a5fee9c
remove unused onlineAccountExpiration type (removed in #4037)
cce dd40c1d
Update ledger/ledger.go
cce a17e450
Update ledger/lruonlineaccts.go
cce c66282e
Merge remote-tracking branch 'upstream/master' into feature/320-rounds
algorandskiy 8befbd5
merge master into feature/320-rounds #4174
algorandskiy 392dfd7
txtail: do not lock in commitRound (#4185)
algorandskiy 091c7ae
ledger: Update onlineAccounts lookup methods for slightly easier read…
cce 8e75b66
add tests for onlineTop function (#4197)
id-ms 04e5992
320 rounds: PR feedback fixes (#4200)
algorandskiy 53b3e36
add test for db behind in-memory (#4199)
id-ms ed02844
Fix exceed mem allocation in state deltas (#4207)
algorandskiy 5a0033c
320 rounds: bring back StateDelta.OptimizeAllocatedMemory (#4208)
cce 364d423
320 rounds PR feedback (#4211)
algorandskiy 419fd7e
Re-enable catchpoint expect test (#4209)
algorandskiy 5648111
Merge remote-tracking branch 'upstream/master' into feature/320-rounds
cce e8f7976
320-rounds: Remove stateproofID from offline accounts (#4184)
a568d3d
320 rounds: PR feedback fixes (#4221)
algorandskiy c52a5b4
320 rounds: fix linter complains (#4235)
algorandskiy 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 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 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 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 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 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 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 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 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 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 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 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 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: there are 4 places in the code where we simply add these two together - while simple math, it's preferable this logic is centralized within a function for maintainability purposes (especially if this formula needs to change down the line).
Options could be to a) create a lookback struct in the data/basics package (holding these two fields) with a function that outputs a value based off the underlying simple math, or b) add a function to consensusparams yielding the lookback value (feels dirty)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
easiest would just be to add a local helper function in the ledger package itself?