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

allow IPCVal to be instantiated from config #2866

Merged
merged 2 commits into from Nov 21, 2018

Conversation

joe-bowman
Copy link
Contributor

Ref #2827

(I have since seen #2847 which is a fix for the same issue; this PR has tests and docs too ;) )

  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

@codecov-io
Copy link

codecov-io commented Nov 16, 2018

Codecov Report

Merging #2866 into develop will increase coverage by 0.23%.
The diff coverage is 51.42%.

@@             Coverage Diff             @@
##           develop    #2866      +/-   ##
===========================================
+ Coverage     62.1%   62.33%   +0.23%     
===========================================
  Files          212      212              
  Lines        17288    17314      +26     
===========================================
+ Hits         10736    10793      +57     
+ Misses        5647     5620      -27     
+ Partials       905      901       -4
Impacted Files Coverage Δ
config/config.go 67.48% <0%> (-0.72%) ⬇️
node/node.go 65.67% <56.25%> (+2.32%) ⬆️
libs/events/events.go 93.2% <0%> (-4.86%) ⬇️
consensus/state.go 80.81% <0%> (+0.93%) ⬆️
evidence/reactor.go 62.62% <0%> (+1.57%) ⬆️
consensus/reactor.go 68.59% <0%> (+3.11%) ⬆️

Copy link
Contributor

@liamsi liamsi left a comment

Choose a reason for hiding this comment

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

Thanks a lot! The PR looks great. I left a few nits. As a general note, I wonder if we shouldn't refactor out the logic that creates and starts the priv validators into a separate function. NewNode is already very long... Not blocking this PR though.

node/node.go Outdated Show resolved Hide resolved
node/node_test.go Outdated Show resolved Hide resolved
@liamsi liamsi changed the base branch from master to develop November 17, 2018 10:14
Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

🍃 🌴 🌤

Thanks @joe-bowman

CHANGELOG_PENDING.md Outdated Show resolved Hide resolved
docs/architecture/adr-008-priv-validator.md Outdated Show resolved Hide resolved
node/node.go Outdated Show resolved Hide resolved
node/node.go Outdated Show resolved Hide resolved
node/node.go Show resolved Hide resolved
node/node_test.go Outdated Show resolved Hide resolved
node/node_test.go Outdated Show resolved Hide resolved
node/node_test.go Outdated Show resolved Hide resolved
node/node_test.go Outdated Show resolved Hide resolved
config/config.go Outdated Show resolved Hide resolved
node/node.go Outdated Show resolved Hide resolved
@joe-bowman
Copy link
Contributor Author

Comments resolved @melekes and @liamsi
Rebased on develop
Commits squashed

@joe-bowman
Copy link
Contributor Author

If 0.26.4 is planned to be release in preparation for GoS, is there any chance to get this merged in too? It doesn't touch any existing code, so should be low risk but will enable some participants to run their planned production configurations for GoS.

@@ -2,8 +2,6 @@

## v0.26.4

*TBD*
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
*TBD*
*TBD*


n, err := DefaultNewNode(config, log.TestingLogger())

assert.NoError(t, err, "expected no err on DefaultNewNode")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert.NoError(t, err, "expected no err on DefaultNewNode")
assert.NoError(t, err)


n, err := DefaultNewNode(config, log.TestingLogger())

assert.NoError(t, err, "expected no err on DefaultNewNode")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert.NoError(t, err, "expected no err on DefaultNewNode")
assert.NoError(t, err)

config.BaseConfig.PrivValidatorListenAddr = addr
n, err := DefaultNewNode(config, log.TestingLogger())

assert.NoError(t, err, "expected no err on DefaultNewNode")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert.NoError(t, err, "expected no err on DefaultNewNode")
assert.NoError(t, err)

@melekes melekes merged commit 72f86b5 into tendermint:develop Nov 21, 2018
melekes added a commit that referenced this pull request Nov 21, 2018
melekes added a commit that referenced this pull request Nov 21, 2018
melekes added a commit that referenced this pull request Nov 21, 2018
melekes added a commit that referenced this pull request Nov 21, 2018
* update ConsensusState#OnStop comment

* consensus: set logger for WAL in tests

* refactor privValidator client code and tests

follow-up on #2866
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

4 participants