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

Update references, pass --blockchain parameter #22

Merged
merged 3 commits into from
Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ FROM golang:1.17.6 as builder
# Clone repositories
WORKDIR /repos
RUN git clone https://github.com/ElrondNetwork/rosetta-docker-scripts.git --branch=v0.2.1 --depth=1
RUN git clone https://github.com/ElrondNetwork/elrond-config-devnet --branch=D1.3.44.0-rosetta3 --depth=1
RUN git clone https://github.com/ElrondNetwork/elrond-config-mainnet --branch=v1.3.44.0-rosetta2 --depth=1
RUN git clone https://github.com/ElrondNetwork/elrond-config-devnet --branch=D1.3.48.0-hf-fix --depth=1
Copy link
Contributor Author

@andreibancioiu andreibancioiu Nov 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still, v1.3.48 binary will be used for devnet, as well.

Mainnet vs. devnet binaries will be separated in #16.

RUN git clone https://github.com/ElrondNetwork/elrond-config-mainnet --branch=v1.3.48.0 --depth=1

WORKDIR /go
RUN git clone https://github.com/ElrondNetwork/elrond-go.git --branch=v1.3.44-rosetta1 --depth=1
RUN git clone https://github.com/ElrondNetwork/rosetta.git --branch=v0.3.3 --depth=1
RUN git clone https://github.com/ElrondNetwork/elrond-go.git --branch=v1.3.48 --depth=1
RUN git clone https://github.com/ElrondNetwork/rosetta.git --branch=v0.3.4 --depth=1

# Build rosetta
WORKDIR /go/rosetta/cmd/rosetta
Expand Down
2 changes: 2 additions & 0 deletions devnet.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
BLOCKCHAIN_NAME=MultiversX

OBSERVER_ACTUAL_SHARD=0
OBSERVER_PROJECTED_SHARD=0
GENESIS_BLOCK=b099dbc444824f5bc30bf194a071f43c8e2019ae6213a641f12974fa6a6db5fb
Expand Down
4 changes: 2 additions & 2 deletions docker-compose-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
- "${PORT_ROSETTA_ONLINE}:8080"
volumes:
- ${DATA_FOLDER_ROSETTA_ONLINE}:/data
command: start-rosetta --port 8080 --observer-http-url=http://11.0.0.10:8080 --network-id=D --network-name=devnet --num-shards=3 --observer-actual-shard=${OBSERVER_ACTUAL_SHARD} --observer-projected-shard=${OBSERVER_PROJECTED_SHARD} --genesis-block=${GENESIS_BLOCK} --genesis-timestamp=${GENESIS_TIMESTAMP} --first-historical-epoch=${FIRST_HISTORICAL_EPOCH} --num-historical-epochs=${NUM_HISTORICAL_EPOCHS} --native-currency=EGLD --logs-folder=/data
command: start-rosetta --port 8080 --observer-http-url=http://11.0.0.10:8080 --blockchain=${BLOCKCHAIN_NAME} --network-id=D --network-name=devnet --num-shards=3 --observer-actual-shard=${OBSERVER_ACTUAL_SHARD} --observer-projected-shard=${OBSERVER_PROJECTED_SHARD} --genesis-block=${GENESIS_BLOCK} --genesis-timestamp=${GENESIS_TIMESTAMP} --first-historical-epoch=${FIRST_HISTORICAL_EPOCH} --num-historical-epochs=${NUM_HISTORICAL_EPOCHS} --native-currency=EGLD --logs-folder=/data
networks:
elrond-rosetta-devnet:
ipv4_address: 11.0.0.21
Expand All @@ -35,7 +35,7 @@ services:
- "${PORT_ROSETTA_OFFLINE}:8080"
volumes:
- ${DATA_FOLDER_ROSETTA_OFFLINE}:/data
command: start-rosetta --port 8080 --offline --observer-http-url=http://nowhere.localhost.local --network-id=D --network-name=devnet --num-shards=3 --observer-actual-shard=${OBSERVER_ACTUAL_SHARD} --observer-projected-shard=${OBSERVER_PROJECTED_SHARD} --genesis-block=${GENESIS_BLOCK} --genesis-timestamp=${GENESIS_TIMESTAMP} --first-historical-epoch=${FIRST_HISTORICAL_EPOCH} --num-historical-epochs=${NUM_HISTORICAL_EPOCHS} --native-currency=EGLD --logs-folder=/data
command: start-rosetta --port 8080 --offline --observer-http-url=http://nowhere.localhost.local --blockchain=${BLOCKCHAIN_NAME} --network-id=D --network-name=devnet --num-shards=3 --observer-actual-shard=${OBSERVER_ACTUAL_SHARD} --observer-projected-shard=${OBSERVER_PROJECTED_SHARD} --genesis-block=${GENESIS_BLOCK} --genesis-timestamp=${GENESIS_TIMESTAMP} --first-historical-epoch=${FIRST_HISTORICAL_EPOCH} --num-historical-epochs=${NUM_HISTORICAL_EPOCHS} --native-currency=EGLD --logs-folder=/data
networks:
elrond-rosetta-devnet:
ipv4_address: 11.0.0.22
Expand Down
4 changes: 2 additions & 2 deletions docker-compose-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
- "${PORT_ROSETTA_ONLINE}:8080"
volumes:
- ${DATA_FOLDER_ROSETTA_ONLINE}:/data
command: start-rosetta --port 8080 --observer-http-url=http://10.0.0.10:8080 --network-id=1 --network-name=mainnet --num-shards=3 --observer-actual-shard=${OBSERVER_ACTUAL_SHARD} --observer-projected-shard=${OBSERVER_PROJECTED_SHARD} --genesis-block=${GENESIS_BLOCK} --genesis-timestamp=${GENESIS_TIMESTAMP} --first-historical-epoch=${FIRST_HISTORICAL_EPOCH} --num-historical-epochs=${NUM_HISTORICAL_EPOCHS} --native-currency=EGLD --logs-folder=/data
command: start-rosetta --port 8080 --observer-http-url=http://10.0.0.10:8080 --blockchain=${BLOCKCHAIN_NAME} --network-id=1 --network-name=mainnet --num-shards=3 --observer-actual-shard=${OBSERVER_ACTUAL_SHARD} --observer-projected-shard=${OBSERVER_PROJECTED_SHARD} --genesis-block=${GENESIS_BLOCK} --genesis-timestamp=${GENESIS_TIMESTAMP} --first-historical-epoch=${FIRST_HISTORICAL_EPOCH} --num-historical-epochs=${NUM_HISTORICAL_EPOCHS} --native-currency=EGLD --logs-folder=/data
networks:
elrond-rosetta-mainnet:
ipv4_address: 10.0.0.21
Expand All @@ -35,7 +35,7 @@ services:
- "${PORT_ROSETTA_OFFLINE}:8080"
volumes:
- ${DATA_FOLDER_ROSETTA_OFFLINE}:/data
command: start-rosetta --port 8080 --offline --observer-http-url=http://nowhere.localhost.local --network-id=1 --network-name=mainnet --num-shards=3 --observer-actual-shard=${OBSERVER_ACTUAL_SHARD} --observer-projected-shard=${OBSERVER_PROJECTED_SHARD} --genesis-block=${GENESIS_BLOCK} --genesis-timestamp=${GENESIS_TIMESTAMP} --first-historical-epoch=${FIRST_HISTORICAL_EPOCH} --num-historical-epochs=${NUM_HISTORICAL_EPOCHS} --native-currency=EGLD --logs-folder=/data
command: start-rosetta --port 8080 --offline --observer-http-url=http://nowhere.localhost.local --blockchain=${BLOCKCHAIN_NAME} --network-id=1 --network-name=mainnet --num-shards=3 --observer-actual-shard=${OBSERVER_ACTUAL_SHARD} --observer-projected-shard=${OBSERVER_PROJECTED_SHARD} --genesis-block=${GENESIS_BLOCK} --genesis-timestamp=${GENESIS_TIMESTAMP} --first-historical-epoch=${FIRST_HISTORICAL_EPOCH} --num-historical-epochs=${NUM_HISTORICAL_EPOCHS} --native-currency=EGLD --logs-folder=/data
networks:
elrond-rosetta-mainnet:
ipv4_address: 10.0.0.22
Expand Down
2 changes: 2 additions & 0 deletions mainnet.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
BLOCKCHAIN_NAME=MultiversX

OBSERVER_ACTUAL_SHARD=0
OBSERVER_PROJECTED_SHARD=0
GENESIS_BLOCK=165821a3407bd0d5916f9710e203bad788053443430e724b7847e086b175d9ab
Expand Down