Skip to content

Commit

Permalink
RA-60: Replace NETWORK_MAGIC with PROTOCOL_MAGIC env var
Browse files Browse the repository at this point in the history
  • Loading branch information
mlinnik committed May 8, 2024
1 parent 1bbf73e commit e51d9ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/.env.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ LOG=INFO
NETWORK=preprod
DB_SCHEMA=preprod
# mainnet, preprod, preview, sanchonet, devkit
NETWORK_MAGIC=1
PROTOCOL_MAGIC=1
# mainnet 764824073, preprod 1, preview 2, sanchonet 4, devkit 42

## Postgres variables
Expand Down Expand Up @@ -40,4 +40,4 @@ YACI_SPRING_PROFILES=postgres
INDEXER_NODE_PORT=3001
MEMPOOL_ENABLED=false
# Haven't implemented yet
INITIAL_BALANCE_CALCULATION_BLOCK=0
INITIAL_BALANCE_CALCULATION_BLOCK=0
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ COPY --from=java-builder /root/app/yaci-indexer/target/*.jar /yaci-indexer/app.j
# Run
RUN mkdir /logs

EXPOSE 8081
EXPOSE 8080

COPY ./docker/entrypoint.sh /sbin/entrypoint.sh
ENTRYPOINT ["/sbin/entrypoint.sh"]
Expand Down
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir ${CARDANO_NODE_SOCKET_PATH}
cardano-node run --database-path /data/db --host-addr 0.0.0.0 --port ${CARDANO_NODE_PORT} --socket-path ${CARDANO_NODE_SOCKET} --topology /current/topology.json --config /current/config.json > /logs/node.log &

echo "entrypoint - run submit api"
cardano-submit-api --config /root/cardano-submit-api/tx-submit-mainnet-config.yaml --socket-path ${CARDANO_NODE_SOCKET} --port ${NODE_SUBMIT_API_PORT} --testnet-magic ${NETWORK_MAGIC} > /logs/submit-api.log &
cardano-submit-api --config /root/cardano-submit-api/tx-submit-mainnet-config.yaml --socket-path ${CARDANO_NODE_SOCKET} --port ${NODE_SUBMIT_API_PORT} --testnet-magic ${PROTOCOL_MAGIC} > /logs/submit-api.log &

echo "entrypoint - run postgres"
/etc/init.d/postgresql start
Expand Down

0 comments on commit e51d9ad

Please sign in to comment.