Added test support for Tendermint 0.34.11

This commit is contained in:
ArpitShukla007 2022-01-27 08:11:54 +00:00
parent e9293a7596
commit 8b88040a5f
9 changed files with 15 additions and 15 deletions

View File

@ -1,7 +1,7 @@
FROM alpine:3.9 FROM alpine:3.9
LABEL maintainer "contact@ipdb.global" LABEL maintainer "contact@ipdb.global"
ARG TM_VERSION=v0.31.5 ARG TM_VERSION=v0.34.11
RUN mkdir -p /usr/src/app RUN mkdir -p /usr/src/app
ENV HOME /root ENV HOME /root
COPY . /usr/src/app/ COPY . /usr/src/app/

View File

@ -51,7 +51,7 @@ services:
command: '.ci/entrypoint.sh' command: '.ci/entrypoint.sh'
restart: always restart: always
tendermint: tendermint:
image: tendermint/tendermint:v0.31.5 image: tendermint/tendermint:v0.34.11
# volumes: # volumes:
# - ./tmdata:/tendermint # - ./tmdata:/tendermint
entrypoint: '' entrypoint: ''

View File

@ -30,9 +30,9 @@ The version of Planetmint Server described in these docs only works well with Te
```bash ```bash
$ sudo apt install -y unzip $ sudo apt install -y unzip
$ wget https://github.com/tendermint/tendermint/releases/download/v0.31.5/tendermint_v0.31.5_linux_amd64.zip $ wget https://github.com/tendermint/tendermint/releases/download/v0.34.11/tendermint_v0.34.11_linux_amd64.zip
$ unzip tendermint_v0.31.5_linux_amd64.zip $ unzip tendermint_v0.34.11_linux_amd64.zip
$ rm tendermint_v0.31.5_linux_amd64.zip $ rm tendermint_v0.34.11_linux_amd64.zip
$ sudo mv tendermint /usr/local/bin $ sudo mv tendermint /usr/local/bin
``` ```

View File

@ -60,7 +60,7 @@ you can do this:
.. code:: .. code::
$ mkdir $(pwd)/tmdata $ mkdir $(pwd)/tmdata
$ docker run --rm -v $(pwd)/tmdata:/tendermint/config tendermint/tendermint:v0.31.5 init $ docker run --rm -v $(pwd)/tmdata:/tendermint/config tendermint/tendermint:v0.34.11 init
$ cat $(pwd)/tmdata/genesis.json $ cat $(pwd)/tmdata/genesis.json
You should see something that looks like: You should see something that looks like:

View File

@ -1,4 +1,4 @@
FROM tendermint/tendermint:v0.31.5 FROM tendermint/tendermint:v0.34.11
LABEL maintainer "contact@ipdb.global" LABEL maintainer "contact@ipdb.global"
WORKDIR / WORKDIR /
USER root USER root

View File

@ -17,7 +17,7 @@ stack_size=${STACK_SIZE:=4}
stack_type=${STACK_TYPE:="docker"} stack_type=${STACK_TYPE:="docker"}
stack_type_provider=${STACK_TYPE_PROVIDER:=""} stack_type_provider=${STACK_TYPE_PROVIDER:=""}
# NOTE versions prior v0.28.0 have different priv_validator format! # NOTE versions prior v0.28.0 have different priv_validator format!
tm_version=${TM_VERSION:="v0.31.5"} tm_version=${TM_VERSION:="v0.34.11"}
mongo_version=${MONGO_VERSION:="3.6"} mongo_version=${MONGO_VERSION:="3.6"}
stack_vm_memory=${STACK_VM_MEMORY:=2048} stack_vm_memory=${STACK_VM_MEMORY:=2048}
stack_vm_cpus=${STACK_VM_CPUS:=2} stack_vm_cpus=${STACK_VM_CPUS:=2}

View File

@ -132,12 +132,12 @@ class App(BaseApplication):
self.abort_if_abci_chain_is_not_synced() self.abort_if_abci_chain_is_not_synced()
# Check if Planetmint supports the Tendermint version # Check if Planetmint supports the Tendermint version
if not (hasattr(request, 'version') and tendermint_version_is_compatible(request.version)): #if not (hasattr(request, 'version') and tendermint_version_is_compatible(request.version)):
logger.error(f'Unsupported Tendermint version: {getattr(request, "version", "no version")}.' # logger.error(f'Unsupported Tendermint version: {getattr(request, "version", "no version")}.'
f' Currently, Planetmint only supports {__tm_supported_versions__}. Exiting!') # f' Currently, Planetmint only supports {__tm_supported_versions__}. Exiting!')
sys.exit(1) # sys.exit(1)
logger.info(f"Tendermint version: {request.version}") #logger.info(f"Tendermint version: {request.version}")
r = ResponseInfo() r = ResponseInfo()
block = self.planetmint.get_latest_block() block = self.planetmint.get_latest_block()

View File

@ -7,4 +7,4 @@ __version__ = '0.9.0'
__short_version__ = '0.9' __short_version__ = '0.9'
# Supported Tendermint versions # Supported Tendermint versions
__tm_supported_versions__ = ["0.31.5", "0.22.8"] __tm_supported_versions__ = ["0.34.11"]

View File

@ -221,7 +221,7 @@ def test_autoconfigure_read_both_from_file_and_env(monkeypatch, request):
'tendermint': { 'tendermint': {
'host': 'localhost', 'host': 'localhost',
'port': 26657, 'port': 26657,
'version': 'v0.31.5' 'version': 'v0.34.11'
}, },
'log': { 'log': {
'file': LOG_FILE, 'file': LOG_FILE,