To build & run the node you need Rust and clang installed.
You may optionally run it with Docker.
Example command line for development and testing:
node/$ cargo run --release -- \
--public-address=localhost \
--grpc-port=4443 \
--http-port=8080 \
--chain-id=1337 \
--latitude=0 \
--longitude=0Or, if you want to provide a specific secret key for the staking wallet:
node/$ cargo run --release -- \
--secret-key=0x8744f79b0093d78d50363caf7a58274467218dced3dd68074d1d4e292ba3de9facf25f5d460aeb5bf772710a86b2a4c879f46a796f145f45f9f470b25d905f8d \
--public-address=localhost \
--grpc-port=4443 \
--http-port=8080 \
--chain-id=1337 \
--latitude=0 \
--longitude=0Warning
do NOT use the above key
0x8744f79b0093d78d50363caf7a58274467218dced3dd68074d1d4e292ba3de9facf25f5d460aeb5bf772710a86b2a4c879f46a796f145f45f9f470b25d905f8d
for any purpose. It's obviously leaked. Any assets transferred to any accounts derived from that
key will be permanently lost.
The Dockerfile uses the following environment variables:
LIBERNET_SECRET_KEYLIBERNET_PUBLIC_ADDRESSLIBERNET_GRPC_PORTLIBERNET_HTTP_PORTLIBERNET_NETWORK_IDLIBERNET_LATITUDELIBERNET_LONGITUDE
Example commands:
node/$ sudo docker build . --tag libernet
node/$ sudo docker run \
-e LIBERNET_SECRET_KEY=0x8744f79b0093d78d50363caf7a58274467218dced3dd68074d1d4e292ba3de9facf25f5d460aeb5bf772710a86b2a4c879f46a796f145f45f9f470b25d905f8d \
-e LIBERNET_PUBLIC_ADDRESS=localhost \
-e LIBERNET_GRPC_PORT=4443 \
-e LIBERNET_HTTP_PORT=8080 \
-e LIBERNET_NETWORK_ID=1337 \
-e LIBERNET_LATITUDE=0 \
-e LIBERNET_LONGITUDE=0 \
-p 4443:4443 \
libernet:latest