Genesis files repository
To connect to different networks (e.g., testnet, devnet and mainnet), you can find the genesis, waypoint and genesis_waypoint here ➜ https://github.com/movementlabsxyz/movement-networks.
Be sure to download the genesis.blob, waypoint.txt and genesis_waypoint.txt for those networks.
Next, run the command below to create a copy of the PFN configuration YAML template:
Finally, edit the fullnode.yaml configuration file to ensure that your PFN: (i) contains the files you just downloaded; and (ii) saves the synchronized blockchain data to the location of your
choice (on your local machine). To do this:
Specify the correct path to the genesis.blob and genesis_waypoint.txt file you just downloaded by editing execution.genesis_file_location in the fullnode.yaml configuration. By default, it points to genesis.blob in the current working directory.
execution: genesis_file_location: ./genesis.blob # update to your path genesis_waypoint: from_file: ./genesis_waypoint.txt
Specify the correct path to the waypoint.txt file you just downloaded by editing base.waypoint.from_file in the fullnode.yaml configuration. By default, it points to waypoint.txt in the current working directory. For example:
base: waypoint: from_file: "./waypoint.txt"
Specify the directory on your local machine that you want to store the blockchain database by editing the base.data_dir in the fullnode.yaml configuration. For example, you can create a directory my-full-node/data in your home directory and specify it as:
Specify the upstream peer for your PFN. The upstream peer is the node from which your PFN will synchronize blockchain data. It is defined by the peer id and the network DNS_.
mainnet: for mainnet the entry point is 9967EBF40AC8C2CCB38709488952DA1826176584EA3067B63B1695362ECB3D1F and the DNS: consensus.mainnet.movementnetwork.xyz which gives:
testnet: for testnet the entry point is 9967EBF40AC8C2CCB38709488952DA1826176584EA3067B63B1695362ECB3D1F and the DNS: consensus.testnet.movementnetwork.xyz which gives:
You can also configure this to point to your own PFN if preferred by adjusting the peer id and DNS.
Start your local public fullnode by running the below command:
cargo run -p aptos-node --release -- -f ./fullnode.yaml
Debugging?
The command above will build a release binary for aptos-node at: aptos-core/target/release/aptos-node. The release
binaries tend to be substantially faster than debug binaries but lack debugging information useful for development.
To build a debug binary, omit the --release flag from the command above.
On linux to get all the necessary packages run the commands: