Skip to content
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
24 changes: 18 additions & 6 deletions src/main/resources/chains/private.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
include "base.conf"
chain-id = "0x2A"
network-id = 42
custom-genesis-file = "chains/private-genesis.json"
dao = null
bootstrap-nodes = []
include "base.conf"
frontier-block-number = "0"
Copy link
Contributor

Choose a reason for hiding this comment

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

I would double check if we do not have some boolean conflicts when are block numbers are equal to 0 (like in ets test sometimes we have fork block equal to -1 to keep the ordering between forks)

homestead-block-number = "0"
eip150-block-number = "0"
eip155-block-number = "0"
eip160-block-number = "0"
difficulty-bomb-pause-block-number = "0"
difficulty-bomb-continue-block-number = "0"
difficulty-bomb-removal-block-number = "0"
atlantis-block-number = "0"
agharta-block-number = "0"
phoenix-block-number = "0"

chain-id = "0x2A"
network-id = 42
custom-genesis-file = "chains/private.json"
dao = null
bootstrap-nodes = []
}
9 changes: 9 additions & 0 deletions src/universal/conf/private-testnet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,21 @@ mantis {
# 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"
}
}

blockchains {
network = "private"
}

consensus {
coinbase = "0011223344556677889900112233445566778899" # has to be changed for each node
Copy link
Contributor

Choose a reason for hiding this comment

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

why this is part of the default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to have anything here(it is the default from application.conf). For each node, we have to obtain a different account

mining-enabled = true
}

network {
discovery {
# We assume a fixed cluster, so `bootstrap-nodes` must not be empty
Expand Down