Sign inSign up

irulast/chia-simulator

By irulast

Updated almost 4 years ago

The Chia Network Full Node simulator running testnet0

Image
1

1.0K

irulast/chia-simulator repository overview

Chia Simulator

The Chia simulator for integration testing

logo

Brought to you by Irulast

Running

This starts the simulator running on port 5000 accessible from the host system.

docker run -e TARGET_UID="$(id -u)" -e TARGET_GID="$(id -g)" -e CLIENT_CONFIG_DIR="/temp/config/" \
 -p 5000:8555 \
 -v "$(pwd)/temp/test-plots":/root/.chia/mainnet/test-plots \
 -v "$(pwd)/temp/config:/temp/config" \
 irulast/chia-simulator

The simulator can be interacted with from the host system.

curl --insecure --cert temp/config/ssl/full_node/private_full_node.crt \
 --key temp/config/ssl/full_node/private_full_node.key \
 -d '{"address": "xch1jln3f7eg65s63khmartj0t6ufsamqnm4xqqzrm7z3t0lux5v6m4spe8ef6"}' \
 -H "Content-Type: application/json" -X POST https://localhost:5000/farm_tx_block
curl --insecure --cert temp/config/ssl/full_node/private_full_node.crt \
 --key temp/config/ssl/full_node/private_full_node.key \
 -d '{}' -H "Content-Type: application/json" \
 -X POST https://localhost:5000/get_blockchain_state

Tag summary

Content type

Image

Digest

Size

162.2 MB

Last updated

over 4 years ago

docker pull irulast/chia-simulator