Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

v0.32.3-binance.5 release #161

Merged
merged 16 commits into from
Jan 18, 2021
Merged

v0.32.3-binance.5 release #161

merged 16 commits into from
Jan 18, 2021

Conversation

EnderCrypto
Copy link
Contributor

  • Referenced an issue explaining the need for the change
  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

melekes and others added 16 commits December 16, 2020 18:49
… (#3928)

* cs: check for SkipTimeoutCommit or wait timeout in handleTxsAvailable

Previously, if create_empty_blocks was set to false, TM sometimes could
create 2 consecutive blocks without actually waiting for timeoutCommit
(1 sec. by default).

```
I[2019-08-29|07:32:43.874] Executed block                               module=state height=47 validTxs=10 invalidTxs=0
I[2019-08-29|07:32:43.876] Committed state                              module=state height=47 txs=10 appHash=F88C010000000000
I[2019-08-29|07:32:44.885] Executed block                               module=state height=48 validTxs=2 invalidTxs=0
I[2019-08-29|07:32:44.887] Committed state                              module=state height=48 txs=2 appHash=FC8C010000000000
I[2019-08-29|07:32:44.908] Executed block                               module=state height=49 validTxs=8 invalidTxs=0
I[2019-08-29|07:32:44.909] Committed state                              module=state height=49 txs=8 appHash=8C8D010000000000
I[2019-08-29|07:32:45.886] Executed block                               module=state height=50 validTxs=2 invalidTxs=0
I[2019-08-29|07:32:45.895] Committed state                              module=state height=50 txs=2 appHash=908D010000000000
I[2019-08-29|07:32:45.908] Executed block                               module=state height=51 validTxs=8 invalidTxs=0
I[2019-08-29|07:32:45.909] Committed state                              module=state height=51 txs=8 appHash=A08D010000000000
```

This commit fixes that by adding a check to handleTxsAvailable.

Fixes #3908

* update changelog

* schedule timeoutCommit if StartTime is in the future

or SkipTimeoutCommit=true && we DON'T have all the votes

* fix TestReactorCreatesBlockWhenEmptyBlocksFalse

by checking if we have LastCommit or not

* address Ethan's comments
to p2p.max_num_inbound_peers + len(p2p.unconditional_peer_ids)
* consensus failure when remote signer drops;cherry-pick d85e2e52d;

* privval: if remote signer errors, don't retry

Refs #5112

* only retrieve pubkey once for all validators;cherry-pick 61ab6718e;

* Only call privValidator.GetPubKey once per block; cherry-pick 5ba30e6f5;

* fix text

Co-authored-by: Anton Kaliaev <[email protected]>
Co-authored-by: Joe Bowman <[email protected]>
p2p: return masked IP (not the actual IP) in addrbook#groupKey
@EnderCrypto EnderCrypto changed the title Develop v0.32.3-binance.5 release Jan 15, 2021
@EnderCrypto EnderCrypto merged commit ad097a6 into master Jan 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants