Skip to content

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

@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