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

Add block event logic to EntryStreamStage #2746

Merged
merged 4 commits into from
Feb 13, 2019

Conversation

CriesofCarrots
Copy link
Contributor

Problem

The block explorer needs to know the last entry_id of a valid block, ie. the block id, in order to display and organize by this identifier. It is currently very difficult for the service to determine the appropriate entry.

Summary of Changes

Adds Output struct and traits to EntryStream to get rid of duplication (and potential for bugs) between mock and live streams.
Adds emit_block_event method to EntryStream
Implements logic (based on current ReplayStage code) in EntryStreamStage to stream block events; this will need to be updated when forking-bank code lands.

Closes #2666 (refactor)

@codecov
Copy link

codecov bot commented Feb 13, 2019

Codecov Report

Merging #2746 into master will increase coverage by <.1%.
The diff coverage is 86.9%.

@@           Coverage Diff            @@
##           master   #2746     +/-   ##
========================================
+ Coverage    79.1%   79.2%   +<.1%     
========================================
  Files         115     115             
  Lines       19203   19319    +116     
========================================
+ Hits        15201   15312    +111     
- Misses       4002    4007      +5

src/entry_stream.rs Outdated Show resolved Hide resolved
src/entry_stream_stage.rs Outdated Show resolved Hide resolved
sunnygleason and others added 2 commits February 13, 2019 10:45
Co-authored-by: Sunny Gleason <sunny.gleason@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
@mvines mvines merged commit be73db1 into solana-labs:master Feb 13, 2019
@CriesofCarrots CriesofCarrots deleted the stream-block-event branch March 6, 2019 00:55
jeffwashington added a commit that referenced this pull request Oct 28, 2022
#28582)

clean_dead_slots_from_accounts_index unrefs correctly (backport #27461) (backport #27467)
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

3 participants