Upgrade Tendermint to 0.19.7, except for Docker image still at 0.19.2 (#2327)

* Fixed 2 PEP257 compliance errors

* Upgrade Tendermint to 0.19.7 except for Docker image, which is still at 0.19.2
This commit is contained in:
Troy McConaghy 2018-06-01 13:29:58 +02:00 committed by GitHub
parent ccb7a86428
commit 02ee8a9ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 11 deletions

View File

@ -39,8 +39,7 @@ def calculate_hash(key_list):
def merkleroot(hashes): def merkleroot(hashes):
""" """Computes the merkle root for a given list.
Computes the merkle root for a given list.
Args: Args:
hashes (:obj:`list` of :obj:`bytes`): The leaves of the tree. hashes (:obj:`list` of :obj:`bytes`): The leaves of the tree.
@ -69,7 +68,7 @@ def merkleroot(hashes):
def public_key64_to_address(base64_public_key): def public_key64_to_address(base64_public_key):
"""Note this only compatibile with Tendermint 0.19.0 """ """Note this only compatible with Tendermint 0.19.x"""
ed25519_public_key = public_key_from_base64(base64_public_key) ed25519_public_key = public_key_from_base64(base64_public_key)
encoded_public_key = amino_encoded_public_key(ed25519_public_key) encoded_public_key = amino_encoded_public_key(ed25519_public_key)
return hashlib.new('ripemd160', encoded_public_key).hexdigest().upper() return hashlib.new('ripemd160', encoded_public_key).hexdigest().upper()

View File

@ -19,13 +19,13 @@ After the installation of MongoDB is complete, run MongoDB using `sudo mongod`
### Installing a Tendermint Executable ### Installing a Tendermint Executable
Find [the version number of the latest Tendermint release](https://github.com/tendermint/tendermint/releases) and install it using the following, where 0.19.3 should be replaced by the latest released version number: Find [the version number of the latest Tendermint release](https://github.com/tendermint/tendermint/releases) and install it using the following, where 0.19.7 should be replaced by the latest released version number:
```bash ```bash
$ sudo apt install -y unzip $ sudo apt install -y unzip
$ wget https://github.com/tendermint/tendermint/releases/download/v0.19.3/tendermint_0.19.3_linux_amd64.zip $ wget https://github.com/tendermint/tendermint/releases/download/v0.19.7/tendermint_0.19.7_linux_amd64.zip
$ unzip tendermint_0.19.3_linux_amd64.zip $ unzip tendermint_0.19.7_linux_amd64.zip
$ rm tendermint_0.19.3_linux_amd64.zip $ rm tendermint_0.19.7_linux_amd64.zip
$ sudo mv tendermint /usr/local/bin $ sudo mv tendermint /usr/local/bin
``` ```

View File

@ -61,9 +61,9 @@ Install a [recent version of Tendermint][tendermint:releases]. BigchainDB Server
``` ```
sudo apt install -y unzip sudo apt install -y unzip
wget https://github.com/tendermint/tendermint/releases/download/v0.19.3/tendermint_0.19.3_linux_amd64.zip wget https://github.com/tendermint/tendermint/releases/download/v0.19.7/tendermint_0.19.7_linux_amd64.zip
unzip tendermint_0.19.3_linux_amd64.zip unzip tendermint_0.19.7_linux_amd64.zip
rm tendermint_0.19.3_linux_amd64.zip rm tendermint_0.19.7_linux_amd64.zip
sudo mv tendermint /usr/local/bin sudo mv tendermint /usr/local/bin
``` ```

View File

@ -1,4 +1,4 @@
ARG tm_version=0.19.3 ARG tm_version=0.19.2
FROM tendermint/tendermint:${tm_version} FROM tendermint/tendermint:${tm_version}
LABEL maintainer "dev@bigchaindb.com" LABEL maintainer "dev@bigchaindb.com"
WORKDIR / WORKDIR /