Skip to content
Snippets Groups Projects

Update testnets scripts & readme

Merged Anthony GRAIGNIC requested to merge update-tests-scripts into main
1 file
+ 20
1
Compare changes
  • Side-by-side
  • Inline
+ 20
1
@@ -97,7 +97,7 @@ flowchart LR
end
```
## Network Tests
### Scripts for testnets
Scripts in `./scripts` are useful to test an EcoMobiCoin network.
@@ -107,6 +107,25 @@ Scripts in `./scripts` are useful to test an EcoMobiCoin network.
| `t1-1mine-with-simulation-2sync` | 1 node mine a block with bxs from simulation data every X seconds, the others sync |
| `t2-n-miners-m-sync.sh` | 2 nodes in turn mine blocks with bxs from simulation data every X seconds, the others sync |
### Configuration
#### CSV Dataset
**Behaviors** are created from CSV files like the example file `data/dataset-extract.csv`. More data can be found in https://gitlab.limos.fr/ecomobicoin/data/movement-data/-/tree/master/public-transport/MF_user_mobility_june-to-august-2023_mulhouse_dataset?ref_type=heads
**Transactions** could also be created from CSV if accounts are not empty.
#### Chainspec
`.ron` file included in node, see https://gitlab.limos.fr/ecomobicoin/truite/-/tree/dev/src/res/chainspec?ref_type=heads and documentation about it https://docs.ecomobicoin.limos.fr/docs/basics/protocol-specs
#### Nodes & Miner config
**Node configuration** has low to no impact on the simulation but can be useful to customize data path, api or debug options.
**Miner configuration** can be useful for simulations to have different mining strategies or bx/tx inclusion in block.
Please refer to [`MiningStrategy`](https://gitlab.limos.fr/ecomobicoin/truite/-/blob/dev/src/consensus/pob/miner.rs?ref_type=heads#L90)
## Development
Build the project for dev with `cargo build` or release with `cargo build --release`
Loading