This is a README file for the Avalanche Simplified project. It provides instructions for running the program and some explanation about the program's functionality.
To change the program's settings, you need to edit the appropriate configuration file. The following table lists the configuration files for each environment:
Environment | Config File |
---|---|
Docker | src/worker/config/prod.yml |
Testing | src/worker/config/testing.yml |
E2E-Testing | src/worker/e2e-tests/default.yml |
Before testing E2E, you need to complete the following prerequisite step:
Run echo 50000 > /proc/sys/kernel/keys/maxkeys
to allow containers to start.
To test E2E, follow these steps:
IMPORTANT: Run make down-200-worker-docker
between each run. The program assumes that nodes are spawned incrementally from 1 to N.
- Run
make build-docker
- Run
run-200-worker-docker
- Create a terminal to the
client_node
container - Run
make test-e2e
The Avalanche Simplified project is based on a network of nodes that exchange messages to reach consensus. The following are some details about the program's functionality:
The src/worker/jobs/scan_nodes.go
file contains the code that handles this feature.
The src/worker/jobs/fetch_transaction.go
file contains the code that allows nodes to exchange messages and reach consensus.