Successfully got a local node up on Ubuntu 18.04 on an EC2 Instance after some help on the Libra Github, sample of which is below:
#!/bin/bash sudo apt update sudo apt upgrade -y sudo apt install -y unzip sudo apt install -y cmake sudo apt install -y zlib1g-dev git clone https://github.com/libra/libra.git cd libra ./scripts/dev_setup.sh cargo run -p libra_swarm -- -s
Now, the CLI Documentation mentions that you can do something similar to this: cargo run -p client --bin client – [OPTIONS] --host --validator_set_file <validator_set_file>
My goal is to have a localized version of the testnet running somewhere, and be able to connect my own clients to it and execute my own smart contracts, hence some questions on clarification on the CLI documentation below:
Where can I find out all of the ports that are running for the local network? I read somewhere else in the documentation that it is open on TCP/30307, I get this log from running the local network
Connected to validator at: localhost:34497 are there any others? Want to make sure I do not have to mess around with Security Groups too much (and eventually I’d like to move this over to Fargate or EKS)
Would it be simple enough to run that example output from the documentation like “cargo run -p client --bin client – --host 10.99.0.1 --port 30307” ?? If I was in the same VPC, or the Public IPv4 address from the outside? And where can I find other values like --validator_set_file ?
More along the same vein, how do you reconnect to a local network you created? I noticed the
cargo swarm command creates different validator files (I forget the exact word, I want to say Root CA but wrong blockchain)
Thanks in advance, all!