Skip to content

Commit

Permalink
Updated configuration for release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kantefier committed Nov 15, 2019
1 parent b16df8d commit 4838c2d
Show file tree
Hide file tree
Showing 7 changed files with 488 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[Релизы платформы](https://github.com/waves-enterprise/WE-releases/releases)
[Releases](https://github.com/waves-enterprise/WE-releases/releases)

[Документация платформы](https://docs.wavesenterprise.com/)
[Documentation](https://docs.wavesenterprise.com/)
12 changes: 9 additions & 3 deletions configs/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
v0.9
v1.0.0
------

Added configuration key "vostok.privacy.enabled". Default value is "false". To configure privacy feature refer to the
[documentation](https://docs.wavesenterprise.com/how-to-setup/configuration-node.html#create-node-config).
Release requires some configuration changes. To restructure existing configuration, please refer to [documentation](https://docs.wavesenterprise.com/how-to-setup/configuration/config-fields.html)


v0.95
------

Added configuration section "vostok.scheduler-service" for anchoring to mainnet. To configure anchoring please refer to [anchoring documentation](https://docs.wavesenterprise.com/en/how-to-setup/configuration-node.html#anchoring-settings)

v0.9
------

Added configuration key "vostok.privacy.enabled". Default value is "false". To configure privacy feature refer to the
[documentation](https://docs.wavesenterprise.com/how-to-setup/configuration-node.html#create-node-config).
File renamed without changes.
File renamed without changes.
150 changes: 150 additions & 0 deletions configs/v1.0.0/mainnet.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
node {
# Type of cryptography
waves-crypto = yes

# Node owner address
owner-address = ""

# Waves "home" and data directories to store the state
directory = "/node"
data-directory = ${node.directory}"/data"

wallet {
# Path to keystore file
file = "/node/keystore.dat"

# Access password
password = ""
}

# Blockchain settings
# Mainnet blockchain settings (should match on all nodes for consistency)
blockchain {
type = CUSTOM
consensus.type = pos

custom {
address-scheme-character = "V"
functionality {
feature-check-blocks-period = 15000
blocks-for-feature-activation = 10000
pre-activated-features = { 2 = 0, 3 = 0, 4 = 0, 5 = 0, 6 = 0, 7 = 0, 9 = 0, 10 = 0 }
}

# Mainnet genesis settings
genesis {
average-block-delay: 40s
initial-base-target: 10000000000
timestamp: 1559320391040
block-timestamp: 1559320391040
initial-balance: 100000000000000000
genesis-public-key-base-58: "D7tDsKd7DQ7H9m6fPRyk1GsNQxjAQXsETtuVgqSaaXDs"
signature: "P7kwe3dWSWgUYL8FZu5kccPfPzoxGgLuKjTCkeapTxoDbdpo6EtcqndXoSjqKUUVS67xXfogGmaNroLgNocWcBg"
transactions = [
{recipient: "3Nnq14SGqeYETSd1SJ6z8LsgBRYB2ya1yRC", amount: 99990000000000000},
{recipient: "3Nrysx7J1TN6vB1eYdHgug2nfxA7um918zy", amount: 1000000000000},
{recipient: "3NuiCzDhmeSKL5QFa5sqZzzm9zTL4max4fZ", amount: 1500000000000},
{recipient: "3NqaDWdEgGsqJj1HjznDQMtk6v5KVxmRceg", amount: 2000000000000},
{recipient: "3Nckru7f8Y8vS3PXGyy5iwoheRrKvqW5u8x", amount: 2500000000000},
{recipient: "3NmHrYoC8S2SUosy6UJp47bBwq2Cr2X6Yq1", amount: 3000000000000}

]
network-participants = [
{public-key: "GasRtAUXMhifrUUmgU66rRZPii68tE4QxdQmtCcrV3xL", roles: [permissioner, connection_manager]},
{public-key: "Er29kgV3yeumEAtPxBAk5fXPERYYa1wmAcPgzWw4mxHi", roles: [miner]},
{public-key: "9eoVBycnr2m8bgu1WvYySoFJ1QqFLPAMzhnmErp291f6", roles: [miner]},
{public-key: "9ngXJ3d1XSQgXcYbgZm2wH4QHS8CTc5mtf9M4XDoz5db", roles: [miner]},
{public-key: "2cvrBT6jePt6mjinE1EdLLymoqRHFhWwepM3E5gRuSeL", roles: [miner]},
{public-key: "87ZVwBTeBiKYdF2Q5hxGazwhR1pKy9VYgun8rLFMEmoW", roles: [miner]}
]
}
}
}

# Application logging level. Could be DEBUG | INFO | WARN | ERROR. Default value is INFO.
logging-level = DEBUG

features.supported = [100]

# P2P Network settings
network {
# Network address
bind-address = "0.0.0.0"
# Port number
port = 6864

# Peers network addresses and ports
known-peers = ["node-0.wavesenterprise.com:6864", "node-1.wavesenterprise.com:6864", "node-2.wavesenterprise.com:6864"]

# Node name to send during handshake. Comment this string out to set random node name.
# node-name = "default-node-name"

# How long the information about peer stays in database after the last communication with it
peers-data-residence-time = 2h

# String with IP address and port to send as external address during handshake. Could be set automatically if uPnP is enabled.
declared-address = "0.0.0.0:6864"
}

# Node's REST API settings
rest-api {
enable = yes
bind-address = "0.0.0.0"
port = 6862

auth {
type: "api-key"

# Hashed secret Api-Key to access node's REST API
api-key-hash = ""

# Api-key hash for Privacy Data Exchange REST API methods
privacy-api-key-hash = ""
}
}

# New blocks generator settings
miner {
enable = no
quorum = 2
interval-after-last-block-then-generation-is-allowed = 35d
micro-block-interval = 5s
min-micro-block-age = 3s
max-transactions-in-micro-block = 500
minimal-block-generation-offset = 200ms
}

# Anchoring settings
scheduler-service.enable = no

# Settings for Privacy Data Exchange
# Uncomment and fill to enable
# privacy {
# storage {
# enabled = true
# url = "jdbc:postgresql://"${POSTGRES_ADDRESS}":"${POSTGRES_PORT}"/"${POSTGRES_DB}
# driver = "org.postgresql.Driver"
# profile = "slick.jdbc.PostgresProfile$"
#
# user = ${POSTGRES_USER}
# password = ${POSTGRES_PASSWORD}
# connectionPool = HikariCP
# connectionTimeout = 5000
# connectionTestQuery = "SELECT 1"
# queueSize = 10000
# numThreads = 20
# schema = "public"
# migration-dir = "db/migration"
# }
# }

# Docker smart-contracts engine config
docker-engine {
enable = no
execution-limits {
timeout = 10s
memory = 512
memory-swap = 512
}
}
}
204 changes: 204 additions & 0 deletions configs/v1.0.0/node-example.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
node {
# Type of cryptography
waves-crypto = yes

# Node owner address
owner-address = ""

# NTP settings
ntp {
server = "pool.ntp.org"

# Maximum time without synchronization. Required for PoA consensus.
fatal-timeout = 5 minutes
}

# Node "home" and data directories to store the state
directory = "/node"
data-directory = "/node/data"

wallet {
# Path to keystore.
file = "/node/keystore.dat"

# Access password
password = ""
}

# Blockchain settings
blockchain {
type = CUSTOM
fees.enabled = false
consensus {
type = "poa"
round-duration = "17s"
sync-duration = "3s"
ban-duration-blocks = 100
warnings-for-ban = 3
max-bans-percentage = 40
}
custom {
address-scheme-character = "E"
functionality {
feature-check-blocks-period = 1500
blocks-for-feature-activation = 1000
pre-activated-features = { 2 = 0, 3 = 0, 4 = 0, 5 = 0, 6 = 0, 7 = 0, 9 = 0, 10 = 0, 100 = 0 }
}

# Mainnet genesis settings
genesis {
average-block-delay: 60s
initial-base-target: 153722867
block-timestamp: 1573472578702
initial-balance: 1625000000000000
genesis-public-key-base-58: ""
signature: ""
transactions = [
{ recipient: "", amount: 150000000000000 },
{ recipient: "", amount: 100000000000000 },
{ recipient: "", amount: 50000000000000 },
]
network-participants = [
{ public-key: "", roles: [permissioner, miner, connection_manager, contract_developer, issuer]},
{ public-key: "", roles: [permissioner, miner, connection_manager, contract_developer, issuer]},
{ public-key: "", roles: [permissioner, miner, connection_manager, contract_developer, issuer]},
]
}
}
}

# Application logging level. Could be DEBUG | INFO | WARN | ERROR. Default value is INFO.
logging-level = DEBUG

features.supported = [100]

# P2P Network settings
network {
# Network address
bind-address = "0.0.0.0"
# Port number
port = 6864

# Peers network addresses and ports
# Example: known-peers = ["node-1.com:6864", "node-2.com:6864"]
known-peers = [ ]

# Node name to send during handshake. Comment this string out to set random node name.
node-name = "your-we-node-name"

# How long the information about peer stays in database after the last communication with it
peers-data-residence-time = 2h

# String with IP address and port to send as external address during handshake. Could be set automatically if uPnP is enabled.
declared-address = "0.0.0.0:6864"
}

# New blocks generator settings
miner {
enable = yes
quorum = 0
interval-after-last-block-then-generation-is-allowed = 10d
micro-block-interval = 5s
min-micro-block-age = 3s
max-transactions-in-micro-block = 500
minimal-block-generation-offset = 200ms
}

# Nodes REST API settings
rest-api {
# Enable/disable REST API
enable = yes

# Network address to bind to
bind-address = "0.0.0.0"

# Port to listen to REST API requests
port = 6862

auth {
type: "api-key"

# Hash of API key string
api-key-hash: ""

# Hash of API key string for PrivacyApi routes
privacy-api-key-hash: ""
}
}

#Settings for Privacy Data Exchange
privacy {
storage {
enabled = false
# url = "jdbc:postgresql://postgres:5432/node-1?user=postgres&password=wenterprise"
# driver = "org.postgresql.Driver"
# profile = "slick.jdbc.PostgresProfile$"

# user = "postgres@postgres&password=wenterprise"
# password = "wenterprise"

# connectionPool = HikariCP
# connectionTimeout = 5000
# connectionTestQuery = "SELECT 1"
# queueSize = 10000
# numThreads = 20
# schema = "public"
# migration-dir = "db/migration"
}
}


# Docker smart contracts settings
docker-engine {
# Docker smart contracts enabled flag
enable = no

# Basic auth credentials for docker host
#docker-auth {
# username = "some user"
# password = "some password"
#}

# Optional connection string to docker host
docker-host = "unix:///var/run/docker.sock"

# Optional string to node REST API if we use remote docker host
# node-rest-api = "node-0"

# Execution settings
execution-limits {
# Contract execution timeout
timeout = 10s
# Memory limit in Megabytes
memory = 512
# Memory swap value in Megabytes (see https://docs.docker.com/config/containers/resource_constraints/)
memory-swap = 0
}

# Reuse once created container on subsequent executions
reuse-containers = yes

# Remove container with contract after specified duration passed
remove-container-after = 10m

# Allows net access for all contracts
allow-net-access = yes

# Remote registries auth information
remote-registries = []

# Check registry auth on node startup
check-registry-auth-on-startup = yes

# Contract execution messages cache settings
contract-execution-messages-cache {
# Time to expire for messages in cache
expire-after = 60m
# Max number of messages in buffer. When the limit is reached, the node processes all messages in batch
max-buffer-size = 10
# Max time for buffer. When time is out, the node processes all messages in batch
max-buffer-time = 100ms
}
}
}

Loading

0 comments on commit 4838c2d

Please sign in to comment.