Skip to content

Merge v0.31.3 to master#3528

Merged
ebuchman merged 14 commits intomasterfrom
v0.31
Apr 2, 2019
Merged

Merge v0.31.3 to master#3528
ebuchman merged 14 commits intomasterfrom
v0.31

Conversation

@ebuchman
Copy link
Contributor

@ebuchman ebuchman commented Apr 2, 2019

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

brapse and others added 14 commits March 27, 2019 18:51
* docs: fix broken links (#3482)

A bunch of links were broken in the documentation s they included the
`docs` prefix.

* Update CHANGELOG_PENDING

* docs: switch to relative links for github compatitibility (#3482)
* Release management using CircleCI

* Changelog updated
* lib: remove useless code in group
* update change log
* Update CHANGELOG_PENDING.md

Co-Authored-By: guagualvcha <baifudong@lancai.cn>
* mempool: resCb -> globalCb

* reqResCb takes an externalCb

* failing test for #3509

* txsMap is sync.Map

* update changelog
* Fix for wrong version tag (tag on the release branch instead of master)
* make sure we create valid private keys:

 - genPrivKey samples and rejects invalid fieldelems (like libsecp256k1)
 - GenPrivKeySecp256k1 uses `(sha(secret) mod (n − 1)) + 1`
 - fix typo, rename test file: s/secpk256k1/secp256k1/

* Update crypto/secp256k1/secp256k1.go
* OriginalAddr -> SocketAddr

OriginalAddr records the originally dialed address for outbound peers,
rather than the peer's self reported address. For inbound peers, it was
nil. Here, we rename it to SocketAddr and for inbound peers, set it to
the RemoteAddr of the connection.

* use SocketAddr

Numerous places in the code call peer.NodeInfo().NetAddress().
However, this call to NetAddress() may perform a DNS lookup if the
reported NodeInfo.ListenAddr includes a name. Failure of this lookup
returns a nil address, which can lead to panics in the code.

Instead, call peer.SocketAddr() to return the static address of the
connection.

* remove nodeInfo.NetAddress()

Expose `transport.NetAddress()`, a static result determined
when the transport is created. Removing NetAddress() from the nodeInfo
prevents accidental DNS lookups.

* fixes from review

* linter

* fixes from review
@ebuchman ebuchman requested review from melekes and xla as code owners April 2, 2019 21:20
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.

This contains the changes of 0.31.2 and 0.31.3. LGTM 👍

@ebuchman ebuchman merged commit 75ffa2b into master Apr 2, 2019
iKapitonau pushed a commit to scrtlabs/tendermint that referenced this pull request Sep 30, 2024
…htClientAttackEvidence` types (backport tendermint#3543) (tendermint#3549)

Closes tendermint#3528 

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] 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#3543 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Alessandro Sforzin <alesforz@gmail.com>
Co-authored-by: Alessandro <alessandro@informal.systems>
iKapitonau pushed a commit to scrtlabs/tendermint that referenced this pull request Sep 30, 2024
…dermint#3705)

Given the discussion in tendermint#3528, we are reverting the changes made by
tendermint#3543 in `v0.38.x` (backported with tendermint#3549).
Additionally, we are removing the changes made in tendermint#3543 from the
CHANGELOG.

---

#### PR checklist

~- [ ] Tests written/updated~
~- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)~
~- [] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
cboh4 pushed a commit to scrtlabs/tendermint that referenced this pull request Apr 7, 2025
…htClientAttackEvidence` types (backport tendermint#3543) (tendermint#3550)

Closes tendermint#3528 

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] 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#3543 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Alessandro Sforzin <alesforz@gmail.com>
Co-authored-by: Alessandro <alessandro@informal.systems>
cboh4 pushed a commit to scrtlabs/tendermint that referenced this pull request Apr 7, 2025
…dermint#3704)

Given the discussion in tendermint#3528, we are reverting the changes made by
tendermint#3543 in `v0.37.x` (backported with tendermint#3550).
Additionally, we are removing the changes made in tendermint#3543 from the
CHANGELOG.

---

#### PR checklist

~- [ ] Tests written/updated~
~- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)~
~- [] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
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.

6 participants