Skip to content

consensus: don't check InitChain app hash vs genesis app hash, replace it#5237

Merged
mergify[bot] merged 1 commit intomasterfrom
erik/initchain-apphash-replaces-genesis
Aug 13, 2020
Merged

consensus: don't check InitChain app hash vs genesis app hash, replace it#5237
mergify[bot] merged 1 commit intomasterfrom
erik/initchain-apphash-replaces-genesis

Conversation

@erikgrinaker
Copy link
Contributor

Followup from #5227. Instead of checking ResponseInitChain.app_hash against the genesis doc app hash, we instead replace it. We should probably remove the genesis doc app hash completely, and rely solely on the one from InitChain, I'll open a separate issue to discuss this.

@erikgrinaker erikgrinaker added the S:automerge Automatically merge PR when requirements pass label Aug 13, 2020
@erikgrinaker erikgrinaker self-assigned this Aug 13, 2020
@auto-comment
Copy link

auto-comment bot commented Aug 13, 2020

👋 Thanks for creating a PR!

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Wrote tests
  • Updated CHANGELOG_PENDING.md
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Updated relevant documentation (docs/) and code comments
  • Re-reviewed Files changed in the Github PR explorer
  • Applied Appropriate Labels

Thank you for your contribution to Tendermint! 🚀

@codecov
Copy link

codecov bot commented Aug 13, 2020

Codecov Report

Merging #5237 into master will decrease coverage by 0.52%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #5237      +/-   ##
==========================================
- Coverage   63.02%   62.50%   -0.53%     
==========================================
  Files         179      259      +80     
  Lines       18922    27187    +8265     
==========================================
+ Hits        11926    16992    +5066     
- Misses       6013     8717    +2704     
- Partials      983     1478     +495     
Impacted Files Coverage Δ
consensus/replay.go 72.61% <0.00%> (+0.46%) ⬆️
crypto/sr25519/pubkey.go 37.93% <0.00%> (-6.90%) ⬇️
rpc/jsonrpc/client/ws_client.go 58.00% <0.00%> (ø)
rpc/core/types/responses.go 36.36% <0.00%> (ø)
state/execution.go 73.17% <0.00%> (ø)
rpc/client/mock/client.go 14.81% <0.00%> (ø)
types/proposal.go 91.04% <0.00%> (ø)
rpc/core/blocks.go 34.66% <0.00%> (ø)
types/genesis.go 84.00% <0.00%> (ø)
rpc/core/env.go 57.44% <0.00%> (ø)
... and 79 more

Copy link
Contributor

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

utACK

@mergify mergify bot merged commit e1a1395 into master Aug 13, 2020
@mergify mergify bot deleted the erik/initchain-apphash-replaces-genesis branch August 13, 2020 08:58
@erikgrinaker erikgrinaker mentioned this pull request Feb 21, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S:automerge Automatically merge PR when requirements pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants