logos-co / nomos-node

Nomos blockchain node
38 stars 13 forks source link

Testnet consensus configuration #656

Closed bacv closed 1 month ago

bacv commented 1 month ago

After the introduction of Cryptarchia, Nomos testnet was missing some consensus configuration. coin-sk, coin-nonce and coin-value was exposed as cli and env parameters.

When the testnet nodes are spawned, the "net node key" is used as a coin-sk. As the node list in the testnet is static, and all nodes are assigned deterministic node keys, the consensus genesis state is predefined in the node config.yaml file. Slot duration time was increased to 5 seconds.

In addition, the bootstrap node now acts as a base image for other nodes to improve the docker compose build times.

To run the testnet locally:

docker compose -f compose.static.yaml up

To get the cryptarchia info:

curl localhost:{18080,18081,18082,18083}/cryptarchia/info

If merged into master, the same configuration will be automatically deployed to testnet.nomos.tech. Open ports are the same as running locally, more information about the testnet.nomos.tech host: https://github.com/status-im/infra-misc/issues/189