Skip to content

Commit

Permalink
[ETCM-121] Replaced bash script for every chain for a single mantis-l…
Browse files Browse the repository at this point in the history
…auncher; removed unnecessary configurations from testnet internal; removed https from app.conf
  • Loading branch information
Nicolas Tallar committed Sep 21, 2020
1 parent 8b03317 commit e02a017
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 42 deletions.
3 changes: 0 additions & 3 deletions src/universal/bin/mantis-etc

This file was deleted.

3 changes: 0 additions & 3 deletions src/universal/bin/mantis-eth

This file was deleted.

10 changes: 10 additions & 0 deletions src/universal/bin/mantis-launcher
@@ -0,0 +1,10 @@
#!/bin/bash

chain="$1"
if [ -z "$chain" ]
then
echo "You need to choose chain"
else
shift
./bin/mantis -Dconfig.file=./conf/"$chain".conf "$@"
fi
3 changes: 0 additions & 3 deletions src/universal/bin/mantis-mordor

This file was deleted.

3 changes: 0 additions & 3 deletions src/universal/bin/mantis-testnet-internal

This file was deleted.

18 changes: 0 additions & 18 deletions src/universal/conf/app.conf
Expand Up @@ -3,21 +3,3 @@
# This where all the default settings are defined (this file is packaged within the executable).
# It should always go at the top.
include "application.conf"

# Enable HTTPS
mantis {
network {
rpc {
http {
mode = "https"

certificate-keystore-path = "conf/mantis.jks"

certificate-keystore-type = "jks"

certificate-password-file = "conf/nopassword"

}
}
}
}
1 change: 0 additions & 1 deletion src/universal/conf/nopassword

This file was deleted.

11 changes: 0 additions & 11 deletions src/universal/conf/testnet-internal.conf
Expand Up @@ -10,10 +10,6 @@ mantis {
# are controlled by a single party, eg. private networks)
blacklist-duration = 0

# Set to false to disable broadcasting the NewBlockHashes message, as its usefulness is debatable,
# especially in the context of private networks
broadcast-new-block-hashes = false

pruning {
mode = "archive"
}
Expand All @@ -40,13 +36,6 @@ mantis {

rpc {
http {
# JSON-RPC mode
# Available modes are: http, https
# Choosing https requires creating a certificate and setting up 'certificate-keystore-path' and
# 'certificate-password-file'
# See: https://github.com/input-output-hk/mantis/wiki/Creating-self-signed-certificate-for-using-JSON-RPC-with-HTTPS
mode = "http"

# Listening address of JSON-RPC HTTP/HTTPS endpoint
interface = ${mantis.network.server-address.interface}

Expand Down

0 comments on commit e02a017

Please sign in to comment.