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

ledger: move catchpoint related methods into a storage package #4835

Merged
merged 6 commits into from
Nov 29, 2022

Conversation

icorderi
Copy link
Contributor

Summary

Continue moving methods out of accountdb.go.

Previous parts of this refactor:

Test Plan

Existing tests.

@icorderi icorderi marked this pull request as ready for review November 28, 2022 14:44
@codecov
Copy link

codecov bot commented Nov 28, 2022

Codecov Report

Merging #4835 (8ca3c4b) into master (1cf857f) will decrease coverage by 0.25%.
The diff coverage is 11.29%.

@@            Coverage Diff             @@
##           master    #4835      +/-   ##
==========================================
- Coverage   53.80%   53.55%   -0.26%     
==========================================
  Files         421      422       +1     
  Lines       53827    53830       +3     
==========================================
- Hits        28963    28827     -136     
- Misses      22516    22687     +171     
+ Partials     2348     2316      -32     
Impacted Files Coverage Δ
ledger/store/accountsV2.go 4.73% <0.00%> (-3.19%) ⬇️
ledger/store/catchpoint.go 0.00% <0.00%> (ø)
ledger/store/merkle_commiter.go 0.00% <0.00%> (ø)
ledger/trackerdb.go 47.05% <42.85%> (+0.20%) ⬆️
ledger/catchupaccessor.go 64.13% <71.42%> (ø)
ledger/catchpointtracker.go 59.36% <93.33%> (ø)
ledger/accountdb.go 68.51% <100.00%> (+0.20%) ⬆️
ledger/acctonline.go 78.29% <100.00%> (ø)
network/wsPeer.go 67.06% <0.00%> (-1.91%) ⬇️
catchup/peerSelector.go 98.95% <0.00%> (-1.05%) ⬇️
... and 6 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@algorandskiy algorandskiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix two minor findings in the subsequent PR

return
}

// LoadFullAccount converts baseAccountData into basics.AccountData and loads all resources as needed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment: baseAccountData -> BaseAccountData

Comment on lines +406 to +410
if err != nil {
return
}

return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just return err

@algorandskiy algorandskiy merged commit a00e8a5 into algorand:master Nov 29, 2022
@algorandskiy algorandskiy changed the title refactor: accountdb.go into a store package (4 of N) ledger: move catchpoint related methods into a storage package Nov 29, 2022
michaeldiamant added a commit to michaeldiamant/go-algorand that referenced this pull request Nov 30, 2022
winder pushed a commit to winder/go-algorand that referenced this pull request Dec 2, 2022
algolucky pushed a commit to algolucky/go-algorand that referenced this pull request Dec 15, 2022
algolucky pushed a commit to algolucky/go-algorand that referenced this pull request Dec 15, 2022
@icorderi icorderi deleted the refactor/accountdb-4 branch December 16, 2022 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants