Skip to content

fix #3460: replayBlocks checkAppHash should't wait the last block#3461

Closed
Zerppen wants to merge 9 commits intomasterfrom
develop
Closed

fix #3460: replayBlocks checkAppHash should't wait the last block#3461
Zerppen wants to merge 9 commits intomasterfrom
develop

Conversation

@Zerppen
Copy link

@Zerppen Zerppen commented Mar 21, 2019

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

ebuchman and others added 8 commits March 19, 2019 19:54
Merge master back to develop
* Update proposer-selection.md

* Fixed typos

* fixed typos

* Attempt to address some comments

* Update proposer-selection.md

* Update proposer-selection.md

* Update proposer-selection.md

Added the normalization step.

* Addressed review comments

* New example for normalization section

Added a new example to better show the need for normalization
Added requirement for changing validator set
Addressed review comments

* Fixed problem with R2

* fixed the math for new validator

* test

* more small updates

* Moved the centering above the round-robin election

- the centering is now done before the actual round-robin block
- updated examples
- cleanup

* change to reflect new implementation for new validator
* p2p: refactor Switch#Broadcast func

- call wg.Add only once
- do not call peers.List twice!
  * bad for perfomance
  * peers list can change in between calls!

Refs #3306

* p2p: use time.Ticker instead of RepeatTimer

no need in RepeatTimer since we don't Reset them

Refs #3306

* libs/common: remove RepeatTimer (also TimerMaker and Ticker interface)

"ancient code that’s caused no end of trouble" Ethan

I believe there's much simplier way to write a ticker than can be reset
https://medium.com/@arpith/resetting-a-ticker-in-go-63858a2c17ec
* blockchain: update the maxHeight when a peer is removed

Refs #2699

* add a changelog entry

* make linter pass
* comments on validator ordering

* NextValidatorsHash
@Zerppen Zerppen changed the title Develop fix #3460 Mar 21, 2019
@melekes
Copy link
Contributor

melekes commented Mar 21, 2019

How merging develop to master is going to fix #3460?

@Zerppen
Copy link
Author

Zerppen commented Mar 21, 2019

@melekes yeah,It's first time ,I used to use JIRA to merge

@liamsi
Copy link
Contributor

liamsi commented Mar 21, 2019

Do you want to open a new PR then or should we leave this one open until it's fixed?
IMHO It's probably worth reading into https://github.com/tendermint/tendermint/blob/master/CONTRIBUTING.md and create a new PR.

@Zerppen Zerppen changed the title fix #3460 fix #3460: replayBlocks checkAppHash should't wait the last block Mar 21, 2019
@Zerppen
Copy link
Author

Zerppen commented Mar 21, 2019

@liamsi I updated docs and did tests,I need authority to pull request

@liamsi
Copy link
Contributor

liamsi commented Mar 21, 2019

I'll close this for now. If anything this should go on a seperate branch with a pull request against the develop branch (currently develop against master). It does not seem to contain any changes and the author also opened #3465 which supposedly also fixes #3460.

@liamsi liamsi closed this Mar 21, 2019
iKapitonau pushed a commit to scrtlabs/tendermint that referenced this pull request Sep 30, 2024
…tendermint#3456) (tendermint#3461)

Closes tendermint#3401 

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [x] Updated relevant documentation (`docs/` or `spec/`) and code
comments
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request tendermint#3456 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
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.

7 participants