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
LABEL maintainer "contact@ipdb.global"
ARG TM_VERSION=v0.31.5
ARG TM_VERSION=v0.34.11
RUN mkdir -p /usr/src/app
ENV HOME /root
COPY . /usr/src/app/

View File

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

View File

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

View File

@ -60,7 +60,7 @@ you can do this:
.. code::
$ 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
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"
WORKDIR /
USER root

View File

@ -17,7 +17,7 @@ stack_size=${STACK_SIZE:=4}
stack_type=${STACK_TYPE:="docker"}
stack_type_provider=${STACK_TYPE_PROVIDER:=""}
# 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"}
stack_vm_memory=${STACK_VM_MEMORY:=2048}
stack_vm_cpus=${STACK_VM_CPUS:=2}

View File

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

View File

@ -7,4 +7,4 @@ __version__ = '0.9.0'
__short_version__ = '0.9'
# 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': {
'host': 'localhost',
'port': 26657,
'version': 'v0.31.5'
'version': 'v0.34.11'
},
'log': {
'file': LOG_FILE,