Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BlackTurtle123/d7f64894311a7c5d1933385c10f78d00 to your computer and use it in GitHub Desktop.
Save BlackTurtle123/d7f64894311a7c5d1933385c10f78d00 to your computer and use it in GitHub Desktop.
# TN node settings in HOCON
# HOCON specification: https://github.com/lightbend/config/blob/master/HOCON.md
TN {
# Node base directory
directory = ${user.home}"/TN-testnet"
data-directory = ${TN.directory}"/data"
leveldb-cache-size = 256M
blockchain {
type: CUSTOM
custom {
address-scheme-character: "l"
# various parameters of network consensus
functionality {
feature-check-blocks-period = 2000
blocks-for-feature-activation = 1000
allow-temporary-negative-until: 0
allow-invalid-payment-transactions-by-timestamp: 0
require-sorted-transactions-after: 0
generation-balance-depth-from-50-to-1000-after-height: 0
minimal-generating-balance-after: 0
allow-transactions-from-future-until: 0
allow-unissued-assets-until: 0
require-payment-unique-id-after: 0
allow-invalid-reissue-in-same-block-until-timestamp: 0
allow-multiple-lease-cancel-transaction-until-timestamp: 0
reset-effective-balances-at-height: 1
allow-leased-balance-transfer-until: 0
block-version-3-after-height: 0
double-features-periods-after-height:0
pre-activated-features = {
2 = 0
1 = 0
3 = 0
5 = 0
6 = 0
}
# ...
}
genesis {
average-block-delay: 60000ms
initial-base-target: 153722867
timestamp: 1500635421931
block-timestamp: 1500635421931
signature: "5E3xfYy3Mdo6XvqnWyQjRjyyBpssCKn6uJXmy4tvmpR4ZY8tMJDVHX282bxm192FNsWGfXM7DiT1Kh8YyJfWa1t9"
initial-balance: 10000000000000000
transactions = [
{recipient: "3XrUtvRZ6LLU8F2wwkuDffwTuLUNcpnjthB", amount: 9000000000000000},
{recipient: "3XqUDqCLK8knT96iFqR91uL4gvGkFiw39Bh", amount: 1000000000000000}
]
}
}
}
# P2P Network settings
network {
# Network address
bind-address = "0.0.0.0"
# Port number
port = 6560
#change to actual node address
declared-address = "1.1.1.1:6560"
# List of IP addresses of well known nodes.
known-peers = ["173.212.206.150"]
}
# Wallet settings
wallet {
# Password to protect wallet file
password = "some string as password"
# By default, the node will attempt to generate a new seed. To use a specific seed, uncomment the following line and
# specify your base58-encoded seed.
seed = "BASE58SEED"
}
# Node's REST API settings
rest-api {
# Enable/disable REST API
enable = yes
# Network address to bind to
bind-address = "127.0.0.1"
# Port to listen to REST API requests
port = 6561
# Hash of API key string
api-key-hash = ""
}
features {
auto-shutdown-on-unsupported-feature = yes
supported = [1, 2, 3, 5, 6]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment