2.3 KiB
Run nitro-nodes
Setup
-
Follow the installation guide to setup ansible on your machine
-
Ensure laconic-so is installed
laconic-so version
-
Clone the ops repo
git clone git@github.com:deep-stack/ops.git cd ops git checkout ag-run-l2
Run l1, l2 nitro nodes
-
Navigate to the
vulcanize/nitro-node-setup
directorycd vulcanize/nitro-node-setup
-
Copy the
nitro-vars-example.yml
vars filecp nitro-vars-example.yml nitro-vars.yml
-
Edit
nitro-vars.yml
and fill in the following values# URL endpoint of the L1 chain l1_nitro_chain_url: "" # URL endpoint of the L2 chain l2_nitro_chain_url: "" # Private key for your nitro address nitro_sc_pk: "" # Private key of the account on chain that is used for funding channels in Nitro node nitro_chain_pk: "" # Contract address of NitroAdjudicator na_address: "" # Contract address of VirtualPaymentApp vpa_address: "" # Contract address of ConsensusApp ca_address: "" # Contract address of bridge bridge_address: "" # IP address of the bridge node nitro_bridge_ip: "" # Publically accessible IP address of your nitro node nitro_node_ip: ""
-
To run nitro nodes, execute the
run-nitro-node.yml
Ansible playbook by running the following command.NOTE: By default, deployments are created in the
nitro-node-setup/out
directory. If you need to change this location, you can update thenitro_directory
variable in the setup-vars.yml file.LANG=en_IN.utf8 ansible-playbook -i localhost, --connection=local run-nitro-node.yml --extra-vars='{ "target_host": "localhost"}' --user $USER
-
If you want to skip building the containers, set
"skip_container_build" : true
in the--extra-vars
parameter:LANG=en_IN.utf8 ansible-playbook -i localhost, --connection=local run-nitro-node.yml --extra-vars='{ "target_host": "localhost", "skip_container_build": true }' --user $USER
-
-
Follow steps from Demo to create mirror channels on L2, create virtual channel and make payments