Skip to content

Update ABCI for new PubKey type and changes to BeginBlock and InitChain#1667

Merged
ebuchman merged 18 commits intodevelopfrom
bucky/abci-11
Jun 6, 2018
Merged

Update ABCI for new PubKey type and changes to BeginBlock and InitChain#1667
ebuchman merged 18 commits intodevelopfrom
bucky/abci-11

Conversation

@ebuchman
Copy link
Contributor

@ebuchman ebuchman commented Jun 1, 2018

Update to the latest ABCI with new:

  • PubKey
  • RequestBeginBlock
  • RequestInitChain

Still a couple TODOs left

@ebuchman ebuchman requested a review from melekes as a code owner June 1, 2018 03:55
@cwgoes
Copy link
Contributor

cwgoes commented Jun 1, 2018

Supersedes most of #1582, can we cherry-pick the last few commits (adding a DUPLICATE_VOTE constant evidence type) from that PR?

@ebuchman
Copy link
Contributor Author

ebuchman commented Jun 1, 2018

Yeh let's do it. Damn looks like I need to fix some tests.

// `SetValidatorSet()` and `ToABCI` methods ?
valset, err := LoadValidators(stateDB, ev.Height())
if err != nil {
panic(err) // shoudn't happen
Copy link
Contributor Author

Choose a reason for hiding this comment

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

shouldn't

switch pk := pubKey.(type) {
case crypto.PubKeyEd25519:
return abci.PubKey{
Type: "ed25519",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

use new types

}
case crypto.PubKeySecp256k1:
return abci.PubKey{
Type: "secp256k1",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same

@ebuchman
Copy link
Contributor Author

ebuchman commented Jun 2, 2018

@cwgoes is this everything you need ?

@ebuchman ebuchman changed the title Bucky/abci 11 Update ABCI for new PubKey type and changes to BeginBlock and InitChain Jun 2, 2018
@xla xla force-pushed the bucky/abci-11 branch from cb35c63 to b5baab0 Compare June 3, 2018 12:00
@codecov-io
Copy link

codecov-io commented Jun 3, 2018

Codecov Report

❗ No coverage uploaded for pull request base (develop@0e0461d). Click here to learn what that means.
The diff coverage is 77.55%.

@@            Coverage Diff             @@
##             develop    #1667   +/-   ##
==========================================
  Coverage           ?   62.31%           
==========================================
  Files              ?      123           
  Lines              ?    11146           
  Branches           ?        0           
==========================================
  Hits               ?     6946           
  Misses             ?     3582           
  Partials           ?      618
Impacted Files Coverage Δ
consensus/replay_file.go 0% <0%> (ø)
state/validation.go 37.73% <0%> (ø)
consensus/wal_generator.go 79.61% <100%> (ø)
node/node.go 64.48% <100%> (ø)
consensus/replay.go 54.82% <100%> (ø)
state/store.go 69.91% <66.66%> (ø)
state/execution.go 70.52% <83.87%> (ø)

@cwgoes
Copy link
Contributor

cwgoes commented Jun 4, 2018

@cwgoes is this everything you need ?

Yes, I think so, updated downstream in cosmos/cosmos-sdk#1115.

@ebuchman ebuchman merged commit 7dfc74a into develop Jun 6, 2018
@ebuchman ebuchman deleted the bucky/abci-11 branch June 6, 2018 20:16
firelizzard18 pushed a commit to AccumulateNetwork/tendermint that referenced this pull request Feb 1, 2024
* address Bucky comments

also add a tracking issue

* fix indentation
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