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

Cleanup bank #277

Merged
merged 6 commits into from
May 29, 2018
Merged

Cleanup bank #277

merged 6 commits into from
May 29, 2018

Conversation

garious
Copy link
Contributor

@garious garious commented May 29, 2018

No description provided.

History: Qualifying the method names with 'verified' was done to
distinguish them from methods that first did signature verification.
After we moved all signature verication to SigVerifyStage, we removed
those methods from Bank, leaving only the 'verified' ones.

This patch removes the word 'verified' from all method names, since
it is now implied by any code running after SigVerifyStage.
History: the function was pulled out of Bank when each field wasn't
wrapped in a RwLock, and that locking 'balances' meant to lock
everything in the bank. Now that the RwLocks are here to stay,
we can make it a method again.
Missed a few.
History: we thought SigVerifyStage would use these, but it does
signature verification before deserializing transactions.
@codecov
Copy link

codecov bot commented May 29, 2018

Codecov Report

Merging #277 into master will decrease coverage by 0.11%.
The diff coverage is 92.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #277      +/-   ##
==========================================
- Coverage   81.45%   81.34%   -0.12%     
==========================================
  Files          30       30              
  Lines        3058     3039      -19     
==========================================
- Hits         2491     2472      -19     
  Misses        567      567
Impacted Files Coverage Δ
src/tvu.rs 88.77% <100%> (ø) ⬆️
src/ledger.rs 100% <100%> (ø) ⬆️
src/banking_stage.rs 91.52% <100%> (ø) ⬆️
src/entry.rs 98.85% <100%> (ø) ⬆️
src/transaction.rs 99.35% <100%> (-0.08%) ⬇️
src/replicate_stage.rs 95% <50%> (ø) ⬆️
src/bank.rs 95.12% <91.66%> (ø) ⬆️

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 86a50ae...d357654. Read the comment docs.

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

1 participant