Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply Tendermint v0.33.5 #99

Merged
merged 33 commits into from
Jul 5, 2020
Merged

Apply Tendermint v0.33.5 #99

merged 33 commits into from
Jul 5, 2020

Commits on May 28, 2020

  1. Configuration menu
    Copy the full SHA
    8f4080e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea2d3f4 View commit details
    Browse the repository at this point in the history
  3. types: implement Header#ValidateBasic (#4638)

    - Move core stateless validation of the Header type to a ValidateBasic method.
    - Call header.ValidateBasic during a SignedHeader validation.
    - Call header.ValidateBasic during a PhantomValidatorEvidence validation.
    - Call header.ValidateBasic during a LunaticValidatorEvidence validation.
    
    lite tests are skipped since the package is deprecated, no need to waste time on it
    
    closes: #4572
    
    Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
    2 people authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    4ddf549 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9550e8a View commit details
    Browse the repository at this point in the history
  5. Makefile: parse TENDERMINT_BUILD_OPTIONS (#4738) (#4883)

    Reduce the number of targets and make the buildsystem more
    flexible by parsing the TENDERMINT_BUILD_OPTIONS command
    line variable (a-la Debian, inspired by dpkg-buildpackage's
    DEB_BUILD_OPTIONS), e.g:
    
     $ make install TENDERMINT_BUILD_OPTIONS='cleveldb'
    
    replaces the old:
    
     $ make install_c
    
    Options can be mix&match'd, e.g.:
    
     $ make install TENDERMINT_BUILD_OPTIONS='cleveldb race nostrip'
    
    Three options are available:
    - nostrip: don't strip debugging symbols nor DWARF tables.
    - cleveldb: use cleveldb as db backend instead of goleveldb;
      it switches on the CGO_ENABLED Go environment variale.
    - race: pass -race to go build and enable data race detection.
    
    This changeset is a port of gaia pull request: cosmos/gaia#363.
    
    Co-authored-by: Alessio Treglia <alessio@tendermint.com>
    2 people authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    24c39aa View commit details
    Browse the repository at this point in the history
  6. lite: fix HTTP provider error handling (#4882)

    * lite: fix HTTP provider error handling
    
    Fixes #4739, kind of. See #4740 for the proper fix.
    
    ---
    
    For contributor use:
    
    - [x] Wrote tests
    - [x] Updated CHANGELOG_PENDING.md
    - [x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
    - [x] Updated relevant documentation (`docs/`) and code comments
    - [x] Re-reviewed `Files changed` in the Github PR explorer
    - [x] Applied Appropriate Labels
    
    * adapt tests to missing pull request
    
    Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
    2 people authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    642dcd4 View commit details
    Browse the repository at this point in the history
  7. privval: remove deprecated OldFilePV (#4889)

    * privval: remove deprecated `OldFilePV`
    
    The old format was deprecated in v0.28. It's time we remove it.
    
    * fix changelog
    melekes authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    e080280 View commit details
    Browse the repository at this point in the history
  8. blockchain/v2: backport fixes (#4887)

    * blockchain/v2: fix excessive CPU usage due to spinning on closed channels (#4761)
    
    The event loop uses a `select` on multiple channels. However, reading from a closed channel in Go always yields the channel's zero value. The processor and scheduler close their channels when done, and since these channels are always ready to receive, the event loop keeps spinning on them.
    
    This changes `routine.terminate()` to not close the channel, and also removes `stopDemux` and instead uses `events` channel closure to signal event loop termination.
    
    Fixes #4687.
    
    * blockchain/v2: respect fast_sync option (#4772)
    
    Not thoroughly tested, but seems to work. Will do further testing as this is integrated with state sync.
    
    Fixes #4688.
    erikgrinaker authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    901ce19 View commit details
    Browse the repository at this point in the history
  9. types: return an error if voting power overflows

    in VerifyCommitTrusting
    
    Closes #4755
    melekes authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    e1b3903 View commit details
    Browse the repository at this point in the history
  10. rpc: handle panics during panic handling (#4888)

    Fixes #4802. The Go HTTP server has a global panic handler for requests, so it was not as severe as first thought.
    
    This fix can still panic, since we try to send a `500` response - if that happens, the Go HTTP server will terminate the connection. Otherwise, the client will get a 200 response, which we should avoid. I'm sort of torn on whether it's even necessary to include this fix, instead of just letting the HTTP server deal with it.
    erikgrinaker authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    2903598 View commit details
    Browse the repository at this point in the history
  11. mempool: allow ReapX and CheckTx functions to run in parallel

    allow ReapX and CheckTx functions to run in parallel, making it not possible to block certain proposers from creating a new block.
    
    Closes: #2972
    melekes authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    62018d9 View commit details
    Browse the repository at this point in the history
  12. pex: use highwayhash for pex bucket

    Closes #2998
    
    Spec PR: tendermint/spec#94
    melekes authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    e4e4bf6 View commit details
    Browse the repository at this point in the history
  13. privval: retry GetPubKey/SignVote/SignProposal N times before

    returning an error
    
    Closes #4707
    melekes authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    cba2438 View commit details
    Browse the repository at this point in the history
  14. rpc: use a struct to wrap all the global objects

    Closes #3433
    melekes authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    7772cdc View commit details
    Browse the repository at this point in the history
  15. rpc: refactor lib folder (#4836)

    Closes tendermint/tendermint#3857
    
    Moves `lib/` folder to `jsonrpc/`.
    
    Renames:
    
    **packages**
    
    `rpc` package -> `jsonrpc` package
    `rpcclient` package -> `client` package
    `rpcserver` package -> `server` package
    
    **structs and interfaces**
    
    ```
    JSONRPCClient to Client
    JSONRPCRequestBatch to RequestBatch
    JSONRPCCaller to Caller
    ```
    
    **functions**
    
    ```
    StartHTTPServer to Serve
    StartHTTPAndTLSServer to ServeTLS
    
    rpc/jsonrpc/client: rename NewURIClient to NewURI
    
    NewJSONRPCClient to New
    NewJSONRPCClientWithHTTPClient to NewWithHTTPClient
    NewWSClient to NewWS
    ```
    
    **misc**
    
    - unexpose `ResponseWriterWrapper`
    - remove unused http_params.go
    melekes authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    e8b4226 View commit details
    Browse the repository at this point in the history
  16. rpc/core: do not lock ConsensusState mutex

    in /validators, /consensus_params and /status
    
    Closes #3161
    melekes authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    69b6e0e View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e406025 View commit details
    Browse the repository at this point in the history
  18. lite2: fix pivot height during bisection

    fix bug with assigning the new pivot height during bisection. PR: #4850
    cmwaters authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    64c7771 View commit details
    Browse the repository at this point in the history
  19. proto: add proto files for ibc unblock (#4853) (#4906)

    these proto files are meant to help unblock ibc in their quest of migrating the ibc module to proto.
    tac0turtle authored and tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    d9c2f01 View commit details
    Browse the repository at this point in the history
  20. prepare v0.33.5 RC2

    tessr committed May 28, 2020
    Configuration menu
    Copy the full SHA
    e22acc0 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2020

  1. Merge tag 'v0.33.5'

    # Conflicts:
    #	.circleci/config.yml
    #	Makefile
    #	go.mod
    #	go.sum
    #	privval/messages.go
    zemyblue committed Jun 25, 2020
    Configuration menu
    Copy the full SHA
    8fb9317 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d0d5e3 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2020

  1. Merge commit '0c3a7c93a6b3792c0b00e72b131da22edae87aa4' into apply_v0…

    ….33.5
    
    # Conflicts:
    #	.circleci/config.yml
    #	CHANGELOG.md
    #	CHANGELOG_PENDING.md
    #	Makefile
    #	go.mod
    #	go.sum
    #	lite2/helpers_test.go
    #	lite2/verifier_test.go
    #	privval/signer_client_test.go
    #	rpc/core/consensus.go
    #	rpc/core/status.go
    #	test/docker/Dockerfile
    #	types/block.go
    #	types/validator_set.go
    zemyblue committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    813628b View commit details
    Browse the repository at this point in the history
  2. fix lint warning.

    zemyblue committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    bb9e944 View commit details
    Browse the repository at this point in the history
  3. Remove CGO_ENABLED in Makefile.

    - BLS library always need the CGO_ENABLED=1 option
    zemyblue committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    067632a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0701253 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2020

  1. Configuration menu
    Copy the full SHA
    715d10c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5855d44 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    abcaf24 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2020

  1. Configuration menu
    Copy the full SHA
    60bf694 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a76cf5d View commit details
    Browse the repository at this point in the history
  3. Fix type error

    zemyblue committed Jul 1, 2020
    Configuration menu
    Copy the full SHA
    e971c73 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2020

  1. Apply the PR review feedback

     - remove `LastValidators`
     - add `LastProofHash`
    zemyblue committed Jul 2, 2020
    Configuration menu
    Copy the full SHA
    b131d02 View commit details
    Browse the repository at this point in the history