bosnet / sebak

SEBAK, the next BOScoin Blockchain
https://devteam.blockchainos.org
GNU General Public License v3.0
44 stars 15 forks source link

Options to prevent starting consensus #928

Closed spikeekips closed 5 years ago

spikeekips commented 5 years ago

Background

This PR is for testing usage

The new option, --stop-consensus prevents starting consensus(especially InitRound()), so SEBAK does not do anything, only waits for a client's requests.

The main usage of this option is for,

At this time, I have been used this option for getting statistics data from mainnet dumped db.

codecov-io commented 5 years ago

Codecov Report

Merging #928 into master will decrease coverage by 0.19%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #928     +/-   ##
=========================================
- Coverage   61.01%   60.81%   -0.2%     
=========================================
  Files         159      159             
  Lines       11239    11244      +5     
=========================================
- Hits         6857     6838     -19     
- Misses       3575     3605     +30     
+ Partials      807      801      -6
Flag Coverage Δ
#integration_tests_long_term 44% <100%> (+0.24%) :arrow_up:
#integration_tests_node 40.42% <100%> (-0.65%) :arrow_down:
#integration_tests_retry 37.75% <100%> (-0.02%) :arrow_down:
#unittests 47.4% <66.66%> (ø) :arrow_up:
Impacted Files Coverage Δ
cmd/sebak/cmd/run.go 56.99% <100%> (+0.29%) :arrow_up:
lib/node/runner/node_runner.go 78.21% <100%> (+0.04%) :arrow_up:
lib/network/http2_client.go 56.7% <0%> (-10.31%) :arrow_down:
lib/node/runner/node_api/api_node_item.go 53.84% <0%> (-10.26%) :arrow_down:
lib/block/transaction_pool.go 52.83% <0%> (-3.78%) :arrow_down:
lib/node/runner/util.go 71.42% <0%> (-3.58%) :arrow_down:
lib/node/runner/finish_ballot.go 43.86% <0%> (-1.42%) :arrow_down:
lib/node/runner/checker.go 73.4% <0%> (-0.22%) :arrow_down:

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 e26154a...ca4f929. Read the comment docs.