Update Tendermint to 0.19.9

This also makes the Docker image build from the (lighter) Alpine
image.
parent c4f4c22f
Pipeline #23402667 passed with stages
in 19 minutes and 4 seconds
FROM erlang:20
FROM erlang:20-alpine
WORKDIR /app
COPY . /app
# We create .erlang.mk/ as a workaround until https://github.com/ninenines/erlang.mk/pull/744 is merged.
RUN mkdir -p .erlang.mk && make rel
RUN apk add --no-cache make git curl build-base libtool autoconf automake
RUN make rel
EXPOSE 46658
......
......@@ -17,7 +17,7 @@ PROJECT_VERSION = 0.1.0
DEPS = abci_server dynarec erlsha2 gb_merkle_trees jiffy libsodium nist_beacon
dep_abci_server = git https://github.com/KrzysiekJ/abci_server.git v0.5.0
dep_dynarec = git https://github.com/dieswaytoofast/dynarec.git 1f477
dep_erlsha2 = git https://github.com/vinoski/erlsha2 2.2.1
dep_erlsha2 = git https://github.com/vinoski/erlsha2 e3434b33cfeea02609bbf877954d856d895b9e1d
dep_gb_merkle_trees = git https://github.com/KrzysiekJ/gb_merkle_trees.git 1687f8be1187cf0964e63012b175b286af69c21a
dep_jiffy = git https://github.com/davisp/jiffy.git 0.14.11
dep_libsodium = git https://github.com/potatosalad/erlang-libsodium.git 0.0.10
......
......@@ -18,7 +18,7 @@ For support and other ephemeral discussions, see [the #ercoin IRC channel on irc
## Development installation
1. Install [Tendermint](https://tendermint.com) (version 0.17.1).
1. Install [Tendermint](https://tendermint.com) (version 0.19.9).
2. Install [Erlang](https://www.erlang.org) (19 is the minimum version).
3. Clone the Ercoin’s repository and enter the created directory.
4. `dev/bootstrap.sh`
......@@ -40,7 +40,7 @@ If you want to create a custom initial state, functions exported from the `ercoi
To run the project using [Docker Compose](https://docs.docker.com/compose/):
1. `docker-compose build`
2. `docker run -it --rm -v ercoin_home:/tendermint tendermint/tendermint:0.17.1 init`
2. `docker run -it --rm -v ercoin_home:/tendermint tendermint/tendermint:0.19.9 init`
3. `docker run -it --rm -e ERCOIN_HOME=/ercoin -v ercoin_home:/ercoin ercoin_abci-server:latest /app/dev/bootstrap.sh`
4. `docker-compose up`
......
{
"app_hash" : "",
"app_state": "g1AAAAH9eNrL4EthYElJLElMZEz8kMiQwsBZmpeSmpaZl5qSyACCWbkMDAwKDARABlMiUwYLWOmDjzMu1RcFrP9bzufLqvV2kvGrcGH/m30q5xWLPatWLPoMVmTGfNJPRP5E7pXrptu3KBnLh5itNFmquz50p+mWd4EiK+5kMIOVWS169K38uaK9x7udUpfrjzKffeNo+OHvXIaFLd/ezZ1xwA+kiIeBsW0BkBb3KHvBANZVfZ3V90fMMltJdQNt1x9cTzee9GmzvnzwQSDbJLalia6boIYT41ABqOEgwAhig3UGvreyrfbZoXXgmbSY+IRT8czLWN+ZTD6S6V5f4TzbZJ9LBlMKA19qUXJ+Zl58al5JUX5BZQqDQFFqTmZiUk4qTAgYZowkOEXRATXIGdFpRrBRf8V0Ost665YFfjT5kfB55fqNh8WkgpRWLn+uZ3Q5rS9OETmGAVv/qfQ=",
"genesis_time" : "0001-01-01T00:00:00.000Z",
"chain_id" : "ercoin-test",
"validators" : [
{
"power" : 64,
"name" : "",
"pub_key" : {
"type" : "ed25519",
"data" : "e0f198d27f7250affd770e4d052aed9233ea57134fd98e24cf2173497aa8a2f3"
}
}
]
"genesis_time": "0001-01-01T00:00:00Z",
"chain_id": "ercoin-test",
"validators": [
{
"pub_key": {
"type": "AC26791624DE60",
"value": "4PGY0n9yUK/9dw5NBSrtkjPqVxNP2Y4kzyFzSXqoovM="
},
"power": 64,
"name": ""
}
],
"app_hash": "",
"app_state": "g1AAAAH9eNrL4EthYElJLElMZEz8kMiQwsBZmpeSmpaZl5qSyACCWbkMDAwKDARABlMiUwYLWOmDjzMu1RcFrP9bzufLqvV2kvGrcGH/m30q5xWLPatWLPoMVmTGfNJPRP5E7pXrptu3KBnLh5itNFmquz50p+mWd4EiK+5kMIOVWS169K38uaK9x7udUpfrjzKffeNo+OHvXIaFLd/ezZ1xwA+kiIeBsW0BkBb3KHvBANZVfZ3V90fMMltJdQNt1x9cTzee9GmzvnzwQSDbJLalia6boIYT41ABqOEgwAhig3UGvreyrfbZoXXgmbSY+IRT8czLWN+ZTD6S6V5f4TzbZJ9LBlMKA19qUXJ+Zl58al5JUX5BZQqDQFFqTmZiUk4qTAgYZowkOEXRATXIGdFpRrBRf8V0Ost665YFfjT5kfB55fqNh8WkgpRWLn+uZ3Q5rS9OETmGAVv/qfQ="
}
{
"address":"4447BBEBF8812823C80FCF301F51431FD7EAA93B",
"pub_key":
{
"type":"ed25519",
"data":"E0F198D27F7250AFFD770E4D052AED9233EA57134FD98E24CF2173497AA8A2F3"
},
"last_height":0,
"last_round":0,
"last_step":0,
"last_signature":null,
"priv_key":
{
"type":"ed25519",
"data":"B24619F57A29A8D3B1EB559E3734CF920313CFD6DD0444D0EB48A5F447EAF5F9E0F198D27F7250AFFD770E4D052AED9233EA57134FD98E24CF2173497AA8A2F3"
}
"address": "146DA449F1259751B2F6D69504D966E98A55F6A6",
"pub_key": {
"type": "AC26791624DE60",
"value": "4PGY0n9yUK/9dw5NBSrtkjPqVxNP2Y4kzyFzSXqoovM="
},
"last_height": 0,
"last_round": 0,
"last_step": 0,
"priv_key": {
"type": "954568A3288910",
"value": "skYZ9XopqNOx61WeNzTPkgMTz9bdBETQ60il9Efq9fng8ZjSf3JQr/13Dk0FKu2SM+pXE0/ZjiTPIXNJeqii8w=="
}
}
......@@ -9,7 +9,7 @@ services:
volumes:
- ercoin_home:/ercoin
tendermint:
image: tendermint/tendermint:0.17.1
image: tendermint/tendermint:0.19.9
ports:
- "46656:46656"
- "46657:46657"
......
......@@ -63,6 +63,9 @@ hexstr_to_bin([X,Y|Tail], Acc) ->
{ok, [Byte], []} = io_lib:fread("~16u", [X,Y]),
hexstr_to_bin(Tail, <<Acc/binary, Byte>>).
%% In version 0.19.0 Tendermint changed the serialization format used for genesis.json and priv_validator.json.
%% This is not resembled below. To create files compatible with the newer format, use scripts/wire2amino.go from Tendermint.
%% @doc Convert data to a genesis.json file for Tendermint.
-spec data_to_genesis_json(data()) -> binary().
data_to_genesis_json(Genesis) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment