Skip to content

allow IPCVal to be instantiated from config - #2866

Merged
melekes merged 2 commits into
tendermint:developfrom
joe-bowman:2827-privval-config
Nov 21, 2018
Merged

melekes merged 2 commits into
tendermint:developfrom
joe-bowman:2827-privval-config

Conversation

@joe-bowman

Copy link
Copy Markdown
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

codecov-io commented Nov 16, 2018 •

Copy link
Copy Markdown

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%) ⬆️

@liamsi liamsi left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread node/node.go Resolved
Comment thread node/node_test.go Resolved
@liamsi
liamsi changed the base branch from master to develop November 17, 2018 10:14

@melekes melekes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🍃 🌴 🌤

Thanks @joe-bowman

Comment thread CHANGELOG_PENDING.md Resolved
Comment thread node/node.go Resolved
Comment thread node/node.go Resolved
Comment thread node/node.go Resolved
Comment thread node/node_test.go Resolved
Comment thread node/node_test.go Resolved
Comment thread node/node_test.go Resolved
Comment thread node/node_test.go Resolved
@joe-bowman
joe-bowman force-pushed the 2827-privval-config branch 2 times, most recently from bcf97f3 to 2af6ac5 Compare November 19, 2018 14:43
Comment thread config/config.go Resolved
Comment thread node/node.go Resolved
@joe-bowman

Copy link
Copy Markdown
Contributor Author

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

@joe-bowman

Copy link
Copy Markdown
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.

Comment thread CHANGELOG_PENDING.md

## v0.26.4

*TBD*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Copy Markdown
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*

Comment thread node/node_test.go

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

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

Copy link
Copy Markdown
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)

Comment thread node/node_test.go

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

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

Copy link
Copy Markdown
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)

Comment thread node/node_test.go
config.BaseConfig.PrivValidatorListenAddr = addr
n, err := DefaultNewNode(config, log.TestingLogger())

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

Copy link
Copy Markdown
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.

4 participants