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

Extract process_ledger from Bank #2785

Merged
merged 1 commit into from
Feb 16, 2019

Conversation

garious
Copy link
Contributor

@garious garious commented Feb 16, 2019

Problem

Fullnode was the only real consumer of process_ledger and it was
only there to process a Blocktree. Blocktree is a tree, and a
ledger is a sequence, so something's clearly not right here.

Summary of Changes

  • Extract process_ledger from bank.rs
  • Drop all other dependencies on process_ledger (only one test) so that it can be fixed up in isolation.

@garious garious requested a review from carllin February 16, 2019 11:31
Fullnode was the only real consumer of process_ledger and it was
only there to process a Blocktree. Blocktree is a tree, and a
ledger is a sequence, so something's clearly not right here.
Drop all other dependencies on process_ledger (only one test) so
that it can be fixed up in isolation.
@garious garious force-pushed the boot-process_ledger branch from 76c2245 to 52c27be Compare February 16, 2019 11:36
@codecov
Copy link

codecov bot commented Feb 16, 2019

Codecov Report

Merging #2785 into master will decrease coverage by <.1%.
The diff coverage is 95.1%.

@@           Coverage Diff            @@
##           master   #2785     +/-   ##
========================================
- Coverage    78.5%   78.5%   -0.1%     
========================================
  Files         119     120      +1     
  Lines       19508   19505      -3     
========================================
- Hits        15333   15325      -8     
- Misses       4175    4180      +5

@garious garious merged commit 4467d5e into solana-labs:master Feb 16, 2019
steviez added a commit to steviez/solana that referenced this pull request Aug 29, 2024
These counters should be removed for several reasons:
- Counters in general are bad (multiple atomics for a single value)
- The counters are at debug level, so effectively unused
- The reported values can be determined from SigVerifierStats

The only thing lost is whether verification was done by cpu/gpu/disabled
verifier. But, most validators are not running gpu's, so ripping this
out now and it can be re-added more properly if more validators shift to
using gpu's.
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Aug 29, 2024
These counters should be removed for several reasons:
- Counters in general are bad (multiple atomics for a single value)
- The counters are at debug level, so effectively unused
- The reported values can be determined from SigVerifierStats

The only thing lost is whether verification was done by cpu/gpu/disabled
verifier. But, most validators are not running gpu's, so ripping this
out now and it can be re-added more properly if more validators shift to
using gpu's.
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.

1 participant