Skip to content

blockblaz/spindevnets

Repository files navigation

Utility to spin local devnet for debugging and integration testing

NETWORK_DIR=kaustinen [full path to this repo]/./spin-node.sh

Test scenarios:

lets say you exported full repo path as

export REPO_PATH=[full path to this repo]

now from anywhere in your system you can run the folowing scenarios (you don't have to leave your dev work dir)

Single node run with an optional peer node which just syncs and tracks

  1. start a single node cl<>el local network
NETWORK_DIR=kaustinen $REPO_PATH/./spin-node.sh
  1. (optional) start a syncpeer node that just syncs off the first node and then tracks it staying synced
NETWORK_DIR=kaustinen MULTIPEER=syncpeer $REPO_PATH/./spin-node.sh

you can start/restart syncpeer at any time (before or after or much much after)

You can also combine both commands and launch them together (using & etc) but stopping them will require process killing

Two node run with an optional peer node which just syncs and tracks

  1. start the bootnode cl<>el
NETWORK_DIR=kaustinen MULTIPEER=peer1 $REPO_PATH/./spin-node.sh

make sure you run the bootnode first because it looks for fork-scheduler.sh in $NETWORK_DIR and runs the script to sed fork scheduling values in the genesis.json and fork.vars for this network session.

other peers in the following steps will read and use those values.

  1. in a different shell start peer2
NETWORK_DIR=kaustinen MULTIPEER=peer2 $REPO_PATH/./spin-node.sh
  1. (optional) start a syncpeer node that just syncs off the first node and then tracks it staying synced
NETWORK_DIR=kaustinen MULTIPEER=syncpeer $REPO_PATH/./spin-node.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages