Skip to content

Commit

Permalink
Merge pull request #952 from input-output-hk/ETCM-661-pottery
Browse files Browse the repository at this point in the history
[ETCM-661]: adds pottery network for local nomad/docker setup
  • Loading branch information
krzysztofpaliga-iohk authored Apr 1, 2021
2 parents fdeb1c3 + dafd345 commit 6c88bad
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/resources/conf/base.conf
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ mantis {
testnet-internal-nomad {include required("chains/testnet-internal-nomad-chain.conf")}

testnet-internal-gac {include required("chains/testnet-internal-gac-chain.conf")}

pottery {include required("chains/pottery-chain.conf")}
}

sync {
Expand Down
24 changes: 24 additions & 0 deletions src/main/resources/conf/chains/pottery-chain.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
include "mordor-chain.conf"
# 1 - mainnet, 3 - ropsten, 7 - mordor, 9 - pottery
network-id = 9

ecip1098-block-number = "0"

ecip1097-block-number = "0"

custom-genesis-file = { include required("pottery-genesis.json") }

bootstrap-nodes = ["enode://ab45bc7c12a77bc3ab49260946cd0fd649db85a1e330e0e9be46b24d5911898027d073750f35837b1937bebea240bc4dc27b6e99316384e1db16011c5fc42819@bootstrap-1:9076",
"enode://1fa095654161e50d1e4b8e6b3a512725bf1bf964295b3431d8c59529f0ccc8525d1cdefb689b3fc9ccc625bbabfb8309ff08a03d3b5d33cd3646c3974992527e@bootstrap-2:9076",
"enode://da1a3a92502f3eafb4e274516976daa351a1b7090d3bb745209b06bd19c9edbf9220f895c27e04bea42e12a71c90dfacf9a761ea82d8c096222e71e2f11bde27@bootstrap-3:9076",
"enode://b252ed56f2d7a686b99659adc04ee7686bf63fd33f712905f3647889809865d4c69a9ee5605c29d0a948b0b1699d1e36478b40da2657724cf847de8df176c95e@bootstrap-4:9076",
"enode://acb31364e7d9a64526751c7811d3bbf6d9de09790582d86fbb1a4bc87e3135a9474ce85a7c0ab52c34feee349fdfd7bfe2871453bf270935b83d8258796a9eb1@bootstrap-5:9076"
]

checkpoint-public-keys = [
"5abbac150283c417b2a05b650c5332c58e1f5579aed734dc33fca47d60cb54007e00e3b18ef251aacc2eff39477f70f1c43f02c64f120a447aea030b60cba702",
"b181e1bf301f7496d83f4bd4a2d22d9d25af8c05b7bf761a46784b4a5862a51467ebfeb64d57a5da2e22c9bc86e9270ce44d55ce6efbd698c05331c6626b5644",
"be9b910c37eb0ee6bb4d69de5529f55d3bf10db657316ce523ce101f03f1277b3471c3ac4d7c24ece5b1abde95f9c3d4049aa603dc2475718bd796f2605d7206",
"03be9c357d0fa4e3c2d9f59de6d02f355c6340353d693a8c6cae2472115825f509f534f316b299d3b9d23b1efc4048dbde24c7e1c3a833acc18730378a0cc7dc",
"464091d0242661ab306d44bae48aacaeffa50d19707ed87139ab51b28d33d89d135609a67eeb3b7e16451e19f9992f77bdf99f671ecd837724eea4363ae39197"
]
12 changes: 12 additions & 0 deletions src/main/resources/conf/chains/pottery-genesis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"difficulty": "0x400",
"extraData": "0x70686f656e697820636869636b656e206162737572642062616e616e61",
"gasLimit": "0x2fefd8",
"nonce": "0x0000000000000000",
"ommersHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"timestamp": "0x5d9676db",
"coinbase": "0x0000000000000000000000000000000000000000",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"alloc": {
}
}
43 changes: 43 additions & 0 deletions src/main/resources/conf/pottery.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
include "base-testnet.conf"

mantis {
blockchains {
network = "pottery"
}

network {
protocol-version = 64

discovery {
discovery-enabled = true
}
}

consensus {
coinbase = "0011223344556677889900112233445566778899" # has to be changed for each node
mining-enabled = false
protocol = "restricted-ethash"
}

metrics {
# Set to `true` iff your deployment supports metrics collection.
# We expose metrics using a Prometheus server
# We default to `false` here because we do not expect all deployments to support metrics collection.
enabled = true

# The port for setting up a Prometheus server over localhost.
port = 13798
}
}

akka {
# Not using ${logging.logs-level} because it might be set to TRACE, which our version of Akka doesn't have.
loglevel = "DEBUG"
}

logging {
# Logs level
logs-level = "DEBUG"
}


0 comments on commit 6c88bad

Please sign in to comment.