This is the collection of files & scripts that should be used to help with local testnet management
See https://docs.klyntar.org/build-core-and-join-network/run-kly-node
git checkout dev_cloud
And install web1337
by running:
pnpm install
This is to generate mock transactions and fill the blocks
git clone https://github.com/KLYN74R/NetRunner.git
cd NetRunner
See netrunner_configs.json
{
"corePath":"/full/path/to/KlyntarCore/klyn74r.js",
"mode":"testnet",
"testnetDir":"TESTNET_V5"
}
Depending on network size - switch testnetDir
to 3 possible options:
TESTNET_V2
TESTNET_V5
TESTNET_V21
- Your
netrunner_configs.json
should look like this:
{
"corePath":"/full/path/to/KlyntarCore/klyn74r.js",
"mode":"testnet",
"testnetDir":"TESTNET_V2",
"nodesIdsToDisable":[]
}
- Then call
node setup.js
This should prepare directories for nodes of your testnet
- Now update the timestamp
Change the timestamp for the first epoch for each node in your network
node update_timestamp_in_genesis.js
- Finally - run your network
Just from a single shell
node runner.js
Your netrunner_configs.json
should look like this:
{
"corePath":"/full/path/to/KlyntarCore/klyn74r.js",
"mode":"testnet",
"testnetDir":"TESTNET_V5",
"nodesIdsToDisable":[]
}
Then repeat:
node setup.js
node update_timestamp_in_genesis.js
node runner.js
Your netrunner_configs.json
should look like this:
{
"corePath":"/full/path/to/KlyntarCore/klyn74r.js",
"mode":"testnet",
"testnetDir":"TESTNET_V21",
"nodesIdsToDisable":[]
}
Then repeat:
node setup.js
node update_timestamp_in_genesis.js
node runner.js