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

chore(lib/trie): database.go small simplifications #2830

Merged
merged 3 commits into from
Sep 15, 2022

Conversation

qdm12
Copy link
Contributor

@qdm12 qdm12 commented Sep 13, 2022

Changes

  • lib/trie: remove unused trie method PutInDB
  • lib/trie: remove test-only trie methods DeleteFromDB and ClearPrefixFromDB and move them inline in trie tests
  • dot/state: do not do type assertion on pruner every time

Tests

Issues

Primary Reviewer

@EclesioMeloJunior

@codecov
Copy link

codecov bot commented Sep 13, 2022

Codecov Report

Merging #2830 (68465ef) into development (1adecf8) will decrease coverage by 0.12%.
The diff coverage is 25.00%.

Additional details and impacted files
@@               Coverage Diff               @@
##           development    #2830      +/-   ##
===============================================
- Coverage        63.32%   63.20%   -0.13%     
===============================================
  Files              213      213              
  Lines            26979    26977       -2     
===============================================
- Hits             17085    17051      -34     
- Misses            8348     8381      +33     
+ Partials          1546     1545       -1     

@qdm12 qdm12 added the PR Easy label Sep 13, 2022
@qdm12 qdm12 marked this pull request as ready for review September 13, 2022 18:00
@qdm12 qdm12 changed the title chore(lib/trie): tiny database simplifications chore(lib/trie): database.go simplifications Sep 13, 2022
@qdm12 qdm12 changed the title chore(lib/trie): database.go simplifications chore(lib/trie): database.go small simplifications Sep 13, 2022
@qdm12 qdm12 merged commit a1e127b into development Sep 15, 2022
@qdm12 qdm12 deleted the qdm12/trie/database-simpl branch September 15, 2022 16:02
@github-actions
Copy link

🎉 This PR is included in version 0.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants