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

handshake replay through consensus using mockApp #408

Merged
merged 14 commits into from
Feb 21, 2017
Merged

handshake replay through consensus using mockApp #408

merged 14 commits into from
Feb 21, 2017

Conversation

ebuchman
Copy link
Contributor

@ebuchman ebuchman commented Feb 16, 2017

Issue: #352
Related: #388, #347, #409

  • Use Mempool and Blockstore interfaces. Should we move these to types ?
  • Use types.Txs.
  • cs_wal_dir -> cs_wal_file.
  • Give a nice warning if ApplyBlock fails (ie. if the app crashes, we don't panic, just say goodbye).
  • Update consensus/test_data/build.sh to allow selecting which data to make.
  • New many_blocks.cswal data for testing handshake replay of many blocks.
  • Remove StateIntermediate stuff.
  • Run the handshake replay through the consensus, using a mockApp if necessary.

@codecov-io
Copy link

codecov-io commented Feb 17, 2017

Codecov Report

Merging #408 into develop will decrease coverage by -0.86%.
The diff coverage is 62.12%.

@@             Coverage Diff             @@
##           develop     #408      +/-   ##
===========================================
- Coverage    51.14%   50.29%   -0.86%     
===========================================
  Files           37       38       +1     
  Lines         4452     4464      +12     
===========================================
- Hits          2277     2245      -32     
- Misses        1959     2022      +63     
+ Partials       216      197      -19

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 3ebd69d...0c4b6cd. Read the comment docs.

@ebuchman ebuchman mentioned this pull request Feb 18, 2017
cs := NewConsensusState(config, state, proxyApp, blockStore, mempool)

evsw := types.NewEventSwitch()
evsw.Start()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defer evsw.Stop?

@@ -273,41 +269,81 @@ func (s *State) CommitStateUpdateMempool(proxyAppConn proxy.AppConnConsensus, bl
return nil
}

// apply a nd commit a block, but with out all the state validation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and without

}

// h.replayLastBlock(h.config, h.state, proxyApp.Consensus(), h.store)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why leave this comment?

@ebuchman ebuchman merged commit bed86da into develop Feb 21, 2017
@ebuchman ebuchman deleted the mock_app branch February 21, 2017 03:01
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