Skip to content

Commit

Permalink
Add initial test5 deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkovicmilos authored and sw360cab committed Nov 8, 2024
1 parent 4f27a57 commit 5710a12
Show file tree
Hide file tree
Showing 4 changed files with 419 additions and 0 deletions.
46 changes: 46 additions & 0 deletions misc/deployments/test5.gno.land/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Overview

This deployment folder contains minimal information needed to launch a full test5.gno.land validator node.

## `genesis.json`

The initial `genesis.json` validator set is consisted of 6 entities (17 validators in total):

- Gno Core - the gno core team (**6 validators**)
- Gno DevX - the gno devX team (**4 validators**)
- AiB - the AiB DevOps team (**3 validators**)
- Onbloc - the [Onbloc](https://onbloc.xyz/) team (**2 validator**)
- Teritori - the [Teritori](https://teritori.com/) team (**1 validator**)
- Berty - the [Berty](https://berty.io/) team (**1 validator**)

Subsequent validators will be added through the governance mechanism in govdao, employing a preliminary simplified
version Proof of Contribution.

The addresses premined belong to different faucet accounts, validator entities and implementation partners.

## `config.toml`

The `config.toml` located in this directory is a **_guideline_**, and not a definitive configuration on how
all nodes should be configured in the network.

### Important params

Some configuration params are required, while others are advised to be set.

- `moniker` - the recognizable identifier of the node.
- `consensus.timeout_commit` - the timeout value after the consensus commit phase. ⚠️ **Required to be `1s`** ⚠️.
- `mempool.size` - the maximum number of txs in the mempool. **Advised to be `10000`**.
- `p2p.laddr` - the listen address for P2P traffic, **specific to every node deployment**. It is advised to use a
reverse-proxy, and keep this value at `tcp://0.0.0.0:<port>`.
- `p2p.max_num_outbound_peers` - the max number of outbound peer connections. **Advised to be `40`**.
- `p2p.persistent_peers` - the persistent peers. ⚠️ **Required to be
`TODO`** ⚠️.
- `p2p.pex` - if using a sentry node architecture, should be `false`. **If not, please set to `true`**.
- `p2p.external_address` - the advertised peer dial address. If empty, will use the same port as the `p2p.laddr`. This
value should be **changed to `{{ your_ip_address }}:26656`**
- `p2p.flush_throttle_timeout` - the timeout for flushing multiplex data. ⚠️ **Required to be `10ms`** ⚠️.
- `p2p.peer_gossip_sleep_duration` - the timeout for peer gossip. ⚠️ **Required to be `10ms`** ⚠️.
- `rpc.laddr` - the JSON-RPC listen address, **specific to every node deployment**.
- `telemetry.enabled` - flag indicating if telemetry should be turned on. **Advised to be `true`**.
- `telemetry.exporter_endpoint` - endpoint for the otel exported. ⚠️ **Required if `telemetry.enabled=true`** ⚠️.
- `telemetry.service_instance_id` - unique ID of the node telemetry instance, **specific to every node deployment**.
246 changes: 246 additions & 0 deletions misc/deployments/test5.gno.land/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
# Mechanism to connect to the ABCI application: socket | grpc
abci = "socket"

# Database backend: goleveldb | boltdb
# * goleveldb (github.com/syndtr/goleveldb - most popular implementation)
# - pure go
# - stable
#* boltdb (uses etcd's fork of bolt - go.etcd.io/bbolt)
# - EXPERIMENTAL
# - may be faster is some use-cases (random reads - indexer)
# - use boltdb build tag (go build -tags boltdb)
db_backend = "goleveldb"

# Database directory
db_dir = "db"

# If this node is many blocks behind the tip of the chain, FastSync
# allows them to catchup quickly by downloading blocks in parallel
# and verifying their commits
fast_sync = true

# If true, query the ABCI app on connecting to a new peer
# so the app can decide if we should keep the connection or not
filter_peers = false
home = ""

# A custom human readable name for this node
moniker = "artemis.local" # Change me!

# Path to the JSON file containing the private key to use for node authentication in the p2p protocol
node_key_file = "secrets/node_key.json"

# Path to the JSON file containing the private key to use as a validator in the consensus protocol
priv_validator_key_file = "secrets/priv_validator_key.json"

# TCP or UNIX socket address for Tendermint to listen on for
# connections from an external PrivValidator process
priv_validator_laddr = ""

# Path to the JSON file containing the last sign state of a validator
priv_validator_state_file = "secrets/priv_validator_state.json"

# TCP or UNIX socket address for the profiling server to listen on
prof_laddr = ""

# TCP or UNIX socket address of the ABCI application,
# or the name of an ABCI application compiled in with the Tendermint binary
proxy_app = "tcp://127.0.0.1:26658"

##### consensus configuration options #####
[consensus]

# EmptyBlocks mode and possible interval between empty blocks
create_empty_blocks = true
create_empty_blocks_interval = "0s"
home = ""

# Reactor sleep duration parameters
peer_gossip_sleep_duration = "10ms" # Do NOT change me, leave me at 10ms!
peer_query_maj23_sleep_duration = "2s"

# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0)
skip_timeout_commit = false
timeout_commit = "1s" # Do NOT change me, leave me at 1s!
timeout_precommit = "1s"
timeout_precommit_delta = "500ms"
timeout_prevote = "1s"
timeout_prevote_delta = "500ms"
timeout_propose = "3s"
timeout_propose_delta = "500ms"
wal_file = "wal/cs.wal/wal"

##### mempool configuration options #####
[mempool]
broadcast = true

# Size of the cache (used to filter transactions we saw earlier) in transactions
cache_size = 10000
home = ""

# Limit the total size of all txs in the mempool.
# This only accounts for raw transactions (e.g. given 1MB transactions and
# max_txs_bytes=5MB, mempool will only accept 5 transactions).
max_pending_txs_bytes = 1073741824 # ~1GB
recheck = true

# Maximum number of transactions in the mempool
size = 10000 # Advised value is 10000
wal_dir = ""

##### peer to peer configuration options #####
[p2p]

# Toggle to disable guard against peers connecting from the same ip.
allow_duplicate_ip = false
dial_timeout = "3s"

# Address to advertise to peers for them to dial
# If empty, will use the same port as the laddr,
# and will introspect on the listener or use UPnP
# to figure out the address.
external_address = "" # Change me!

# Time to wait before flushing messages out on the connection
flush_throttle_timeout = "10ms" # Do NOT change me, leave me at 10ms!

# Peer connection configuration.
handshake_timeout = "20s"
home = ""

# Address to listen for incoming connections
laddr = "tcp://0.0.0.0:26656" # Change me!

# Maximum number of inbound peers
max_num_inbound_peers = 40

# Maximum number of outbound peers to connect to, excluding persistent peers
max_num_outbound_peers = 40 # Advised value is 40

# Maximum size of a message packet payload, in bytes
max_packet_msg_payload_size = 1024

# Comma separated list of nodes to keep persistent connections to
persistent_peers = "" # TODO update @Salvo, @Blake, @Sergio, @Norman, @Albert

# Set true to enable the peer-exchange reactor
pex = false # Should be `false` if using a sentry node. Otherwise `true`!

# Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
private_peer_ids = ""

# Rate at which packets can be received, in bytes/second
recv_rate = 5120000

# Seed mode, in which node constantly crawls the network and looks for
# peers. If another node asks it for addresses, it responds and disconnects.
#
# Does not work if the peer-exchange reactor is disabled.
seed_mode = false

# Comma separated list of seed nodes to connect to
seeds = ""

# Rate at which packets can be sent, in bytes/second
send_rate = 5120000
test_dial_fail = false
test_fuzz = false

# UPNP port forwarding
upnp = false

[p2p.test_fuzz_config]
MaxDelay = "3s"
Mode = 0
ProbDropConn = 0.0
ProbDropRW = 0.2
ProbSleep = 0.0

##### rpc server configuration options #####
[rpc]

# A list of non simple headers the client is allowed to use with cross-domain requests
cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time"]

# A list of methods the client is allowed to use with cross-domain requests
cors_allowed_methods = ["HEAD", "GET", "POST", "OPTIONS"]

# A list of origins a cross-domain request can be executed from
# Default value '[]' disables cors support
# Use '["*"]' to allow any origin
cors_allowed_origins = ["*"]

# TCP or UNIX socket address for the gRPC server to listen on
# NOTE: This server only supports /broadcast_tx_commit
grpc_laddr = ""

# Maximum number of simultaneous connections.
# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections
# If you want to accept a larger number than the default, make sure
# you increase your OS limits.
# 0 - unlimited.
# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
# 1024 - 40 - 10 - 50 = 924 = ~900
grpc_max_open_connections = 900
home = ""

# TCP or UNIX socket address for the RPC server to listen on
laddr = "tcp://0.0.0.0:26657" # Please use a reverse proxy!

# Maximum size of request body, in bytes
max_body_bytes = 1000000

# Maximum size of request header, in bytes
max_header_bytes = 1048576

# Maximum number of simultaneous connections (including WebSocket).
# Does not include gRPC connections. See grpc_max_open_connections
# If you want to accept a larger number than the default, make sure
# you increase your OS limits.
# 0 - unlimited.
# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
# 1024 - 40 - 10 - 50 = 924 = ~900
max_open_connections = 900

# How long to wait for a tx to be committed during /broadcast_tx_commit.
# WARNING: Using a value larger than 10s will result in increasing the
# global HTTP write timeout, which applies to all connections and endpoints.
# See https://github.com/tendermint/classic/issues/3435
timeout_broadcast_tx_commit = "10s"

# The path to a file containing certificate that is used to create the HTTPS server.
# Might be either absolute path or path related to tendermint's config directory.
# If the certificate is signed by a certificate authority,
# the certFile should be the concatenation of the server's certificate, any intermediates,
# and the CA's certificate.
# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. Otherwise, HTTP server is run.
tls_cert_file = ""

# The path to a file containing matching private key that is used to create the HTTPS server.
# Might be either absolute path or path related to tendermint's config directory.
# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. Otherwise, HTTP server is run.
tls_key_file = ""

# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool
unsafe = false

##### node telemetry #####
[telemetry]
enabled = true # Advised to be `true`

# the endpoint to export metrics to, like a local OpenTelemetry collector
exporter_endpoint = "" # Change me to the OTEL endpoint!
meter_name = "test5.gno.land"

# the ID helps to distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled service)
service_instance_id = "gno-node-1"
service_name = "gno.land"

##### event store #####
[tx_event_store]

# Type of event store
event_store_type = "none"

# Event store parameters
[tx_event_store.event_store_params]
58 changes: 58 additions & 0 deletions misc/deployments/test5.gno.land/genesis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"genesis_time": "2024-11-12T08:00:00Z",
"chain_id": "test5",
"consensus_params": {
"Block": {
"MaxTxBytes": "1000000",
"MaxDataBytes": "2000000",
"MaxBlockBytes": "0",
"MaxGas": "100000000",
"TimeIotaMS": "100"
},
"Validator": {
"PubKeyTypeURLs": [
"/tm.PubKeyEd25519"
]
}
},
"app_hash": null,
"app_state": {
"@type": "/gno.GenesisState",
"balances": [
"g1cx6s2rd4274vhvg509cwglw8senpq00ldqrntv=9000000000000000000ugnot",
"g1cpx59z5r8vzeww2fm4ezpz7yvjs7kptywkm864=9000000000000000000ugnot",
"g1mdy2f562he07a5txs8nvjelstur90e5sg5tkux=9000000000000000000ugnot",
"g1a6jf5g6gkhn5rxcvwxq5zjxgwaznjr9r8gehey=9000000000000000000ugnot",
"g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj=9000000000000000000ugnot",
"g1mx4pum9976th863jgry4sdjzfwu03qan5w2v9j=9000000000000000000ugnot",
"g1778y2yphxs2wpuaflsy5y9qwcd4gttn4g5yjx5=9000000000000000000ugnot",
"g1hy6zry03hg5d8le9s2w4fxme6236hkgd928dun=9000000000000000000ugnot",
"g1mpkp5lm8lwpm0pym4388836d009zfe4maxlqsq=9000000000000000000ugnot",
"g125em6arxsnj49vx35f0n0z34putv5ty3376fg5=9000000000000000000ugnot",
"g1qhskthp2uycmg4zsdc9squ2jds7yv3t0qyrlnp=9000000000000000000ugnot",
"g1yllclm55ls04dtemcwqgd0nyvyem0s8v6arwzt=9000000000000000000ugnot",
"g1j40cmy9yefpwtesqzutc347d48uzk4428zu536=9000000000000000000ugnot",
"g1jazghxvvgz3egnr2fc8uf72z4g0l03596y9ls7=9000000000000000000ugnot",
"g19p3yzr3cuhzqa02j0ce6kzvyjqfzwemw3vam0x=9000000000000000000ugnot",
"g18x425qmujg99cfz3q97y4uep5pxjq3z8lmpt25=9000000000000000000ugnot",
"g15ruzptpql4dpuyzej0wkt5rq6r26kw4nxu9fwd=9000000000000000000ugnot",
"g1dfr24yhk5ztwtqn2a36m8f6ud8cx5hww4dkjfl=9000000000000000000ugnot",
"g1acn3xssksatydd0fcuslvgmjyw0fzkjdhusddg=9000000000000000000ugnot",
"g14vzc065ntj3rq3gfz9my3aja0yyezv7frmjsy3=9000000000000000000ugnot",
"g1pw4ju09ac9y0nj9lltglctk9zq7klk0tkttygk=9000000000000000000ugnot",
"g1whzkakk4hzjkvy60d5pwfk484xu67ar2cl62h2=9000000000000000000ugnot",
"g1ker4vvggvsyatexxn3hkthp2hu80pkhrwmuczr=9000000000000000000ugnot",
"g1u7y667z64x2h7vc6fmpcprgey4ck233jaww9zq=9000000000000000000ugnot",
"g1e6gxg5tvc55mwsn7t7dymmlasratv7mkv0rap2=9000000000000000000ugnot",
"g1wmw2czwy260sydkupu53k6aeh6gxtf3e0egtku=9000000000000000000ugnot",
"g13fzhe4655aqdfr3flydd3pt9s0f4a775g96wj7=9000000000000000000ugnot",
"g197q5e9v00vuz256ly7fq7v3ekaun5cr7wmjgfh=9000000000000000000ugnot",
"g18amm3fc00t43dcxsys6udug0czyvqt9e7p23rd=9000000000000000000ugnot",
"g16tfrrul20g4jzt3z303raqw8vs8s2pqqh5clwu=9000000000000000000ugnot",
"g1dnllrdzwfhxv3evyk09y48mgn5phfjvtyrlzm7=9000000000000000000ugnot",
"g127l4gkhk0emwsx5tmxe96sp86c05h8vg5tufzq=9000000000000000000ugnot",
"g1dvkfj5q79r3fnepqa0u5ym9d5l3dw83z203j02=9000000000000000000ugnot"
],
"txs": null
}
}
Loading

0 comments on commit 5710a12

Please sign in to comment.