Skip to content

Add universal configuration for a custom private testnet #441

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

Merged
merged 1 commit into from
Apr 24, 2018

Conversation

loverdos
Copy link
Contributor

No description provided.

@loverdos loverdos force-pushed the feature/cgkiele-155 branch 2 times, most recently from 1da1af6 to e5a64d5 Compare April 17, 2018 07:38
@rtkaczyk
Copy link
Contributor

Note: this should be merged after #442 and include the following settings:

atomix-raft.block-forging-delay = 15.seconds
sync.blacklist-duration = 0
sync.broadcast-new-block-hashes = false

@rtkaczyk rtkaczyk self-requested a review April 17, 2018 07:43
@loverdos loverdos force-pushed the feature/cgkiele-155 branch 4 times, most recently from 7b53ca6 to b1fb023 Compare April 17, 2018 09:46
def parseNode(id_host_port: String): AtomixNode = {
val parts = id_host_port.split(":")
log.info(s"atomix-raft: id_host_port = ${id_host_port} => parts = ${parts.toList}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: not sure if it's the best place for such logging, as a reader might expect this to be a pure function and want to use it in different context.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hahha... this is just a transient commit I needed for quickly testing the cluster, so this logging is going to go away. But we are still in do-no-merge mode ;)

@@ -45,8 +45,10 @@ object AtomixRaftConfig extends Logger {
case _ ⇒ throw new IllegalArgumentException("parts.length != 1, 2, 3")
}

//noinspection ScalaStyle
Copy link
Contributor

Choose a reason for hiding this comment

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

Still needed?

Copy link
Contributor

@rtkaczyk rtkaczyk left a comment

Choose a reason for hiding this comment

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

Sorry, too fast

discovery {
# Listening interface for discovery protocol
interface = ${mantis.network.server-address.interface}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should disable discovery and override bootstrap nodes

interface = ${mantis.network.server-address.interface}

# Domains allowed to query RPC endpoint. Use "*" to enable requests from any domain.
cors-allowed-origins = []
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we should set this to "*"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I changed this to match exactly what we do now in the testnet, which is actually the primary motivation for this PR.

@loverdos loverdos changed the title Add universal configuration for a custom (private) testnet Add universal configuration for a custom private testnet Apr 17, 2018
@loverdos loverdos force-pushed the feature/cgkiele-155 branch 2 times, most recently from 1fa91fe to 893fe02 Compare April 17, 2018 11:33
network {
discovery {
# Turn discovery of/off
# discovery-enabled = true
Copy link
Contributor

Choose a reason for hiding this comment

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

So, don't we want that disabled?

@loverdos loverdos force-pushed the feature/cgkiele-155 branch from 43da580 to cfd8a6f Compare April 17, 2018 13:47
# Set of initial nodes
bootstrap-nodes = [
"enode://18a551bee469c2e02de660ab01dede06503c986f6b8520cb5a65ad122df88b17b285e3fef09a40a0d44f99e014f8616cf1ebc2e094f96c6e09e2f390f5d34857@127.0.0.1:30303",
]
Copy link
Contributor

@rtkaczyk rtkaczyk Apr 23, 2018

Choose a reason for hiding this comment

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

Minor, as it will have to be modified anyway, but wouldn't we prefer empty list or even:

bootstrap-nodes = [
  # fill in with node URIs for the private network, e.g.:
  # "enode://18a551bee469c2e02de660ab01dede06503c986f6b8520cb5a65ad122df88b17b285e3fef09a40a0d44f99e014f8616cf1ebc2e094f96c6e09e2f390f5d34857@127.0.0.1:30303"
]

@loverdos loverdos merged commit 35e0661 into phase/iele_testnet Apr 24, 2018
@loverdos loverdos deleted the feature/cgkiele-155 branch April 24, 2018 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants