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(core-state): remove forget methods and use index instead #3962

Merged
merged 10 commits into from Aug 18, 2020

Conversation

sebastijankuzner
Copy link
Contributor

Summary

Remove all forget* methods on wallet-repository. Re implements index methods, which now forget wallet from all indexes and re add them back to keep consistency and integrity.

Checklist

  • Tests
  • Ready to be merged

@codecov
Copy link

codecov bot commented Aug 14, 2020

Codecov Report

Merging #3962 into develop will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #3962      +/-   ##
===========================================
- Coverage    97.57%   97.56%   -0.02%     
===========================================
  Files          629      630       +1     
  Lines        14536    14557      +21     
  Branches      1728     1732       +4     
===========================================
+ Hits         14184    14203      +19     
  Misses         165      165              
- Partials       187      189       +2     
Flag Coverage Δ
#functional 6.81% <0.00%> (-0.01%) ⬇️
#integration 9.89% <0.00%> (+0.04%) ⬆️
#unit 95.73% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...transactions/src/handlers/business-registration.ts 97.50% <ø> (-0.12%) ⬇️
...-transactions/src/handlers/business-resignation.ts 90.47% <100.00%> (-0.44%) ⬇️
packages/core-state/src/wallets/wallet-index.ts 100.00% <100.00%> (ø)
...ckages/core-state/src/wallets/wallet-repository.ts 92.08% <100.00%> (-0.44%) ⬇️
...sactions/src/handlers/one/delegate-registration.ts 90.90% <100.00%> (ø)
...nsactions/src/handlers/two/delegate-resignation.ts 100.00% <100.00%> (ø)
...ate/src/wallets/wallet-repository-copy-on-write.ts 94.73% <0.00%> (-5.27%) ⬇️
packages/core-database/src/database-service.ts 96.90% <0.00%> (-0.32%) ⬇️
packages/core-state/src/stores/state.ts 100.00% <0.00%> (ø)
packages/core-blockchain/src/blockchain.ts 96.81% <0.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f21af37...ab6a63e. Read the comment docs.

@air1one air1one merged commit 9a6358a into develop Aug 18, 2020
@ghost ghost deleted the chore/core-state/reindex branch August 18, 2020 12:44
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.

None yet

2 participants