Skip to content

Update to Amino v0.13.0-rc0#2687

Merged
ebuchman merged 4 commits intodevelopfrom
bucky/amino-13
Oct 23, 2018
Merged

Update to Amino v0.13.0-rc0#2687
ebuchman merged 4 commits intodevelopfrom
bucky/amino-13

Conversation

@ebuchman
Copy link
Contributor

@ebuchman ebuchman commented Oct 22, 2018

Updates to Amino v0.13 which updates the way time is encoded.

Also fixes a bug where we weren't sending Version or NextValidatorsHash in the header to the ABCI app

Replaces #2681, for now

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

@ebuchman
Copy link
Contributor Author

@liamsi should we cut a rc1 of amino or make the full release so we can update the MarshalBinary -> MarshalBinaryLenPrefixed as well?

@liamsi
Copy link
Contributor

liamsi commented Oct 22, 2018

Let's do a 0.13.0 release that includes the MarshalBinary -> MarshalBinaryLenPrefixed, too.
#2690 contains the changes for this (WIP).

@liamsi liamsi mentioned this pull request Oct 22, 2018
4 tasks
@codecov-io
Copy link

Codecov Report

Merging #2687 into develop will decrease coverage by 0.03%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #2687      +/-   ##
===========================================
- Coverage    61.56%   61.53%   -0.04%     
===========================================
  Files          207      207              
  Lines        16939    16931       -8     
===========================================
- Hits         10429    10418      -11     
  Misses        5647     5647              
- Partials       863      866       +3
Impacted Files Coverage Δ
state/state.go 91.39% <100%> (-0.19%) ⬇️
libs/events/events.go 93.2% <0%> (-4.86%) ⬇️
privval/tcp_server.go 78.57% <0%> (-2.86%) ⬇️
p2p/pex/addrbook.go 69.58% <0%> (-0.49%) ⬇️
consensus/reactor.go 71.22% <0%> (+0.38%) ⬆️
evidence/reactor.go 67.05% <0%> (+1.12%) ⬆️

@liamsi liamsi changed the title Update to Amino v0.13.0 Update to Amino v0.13.0-rc0 Oct 23, 2018
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.

LGTM

block.LastResultsHash = state.LastResultsHash

// NOTE: we can't use the state.Validators because we don't
// IncrementAccum for rounds there.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should add this note about the IncrementAccum to the godoc for the method

@ebuchman ebuchman merged commit be929ac into develop Oct 23, 2018
@ebuchman ebuchman deleted the bucky/amino-13 branch October 23, 2018 17:21
}
for i, tc := range tests {
got, err := cdc.MarshalBinary(tc.canonicalVote)
got, err := cdc.MarshalBinaryBare(tc.canonicalVote)
Copy link
Contributor

@liamsi liamsi Oct 23, 2018

Choose a reason for hiding this comment

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

The SignBytes still use MarshalBinary (now MarshalBinaryLengthPrefixed). It's a bit weird to change this in the tests only. Also, I actually use the length in the kms, too. Not blocking a release though.

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