2024-06-18 15:20:46 +01:00
|
|
|
# Side BFT-CRDT PoC
|
2024-06-12 15:07:03 +01:00
|
|
|
|
2024-06-18 15:20:46 +01:00
|
|
|
This is a proof of concept implementation of a BFT-CRDT blockchain system.
|
2024-06-12 15:07:03 +01:00
|
|
|
|
|
|
|
|
## Running in development
|
|
|
|
|
|
2024-06-18 15:20:46 +01:00
|
|
|
Run the watcher first:
|
2024-06-12 15:07:03 +01:00
|
|
|
|
|
|
|
|
```bash
|
2024-06-18 15:20:46 +01:00
|
|
|
cd side-watcher
|
|
|
|
|
cargo watch -x run
|
2024-06-12 15:07:03 +01:00
|
|
|
```
|
|
|
|
|
|
2024-06-18 15:20:46 +01:00
|
|
|
To init a Side node:
|
2024-06-12 15:07:03 +01:00
|
|
|
|
|
|
|
|
```bash
|
2024-06-18 15:20:46 +01:00
|
|
|
cd side-node
|
|
|
|
|
cargo run -- init node1
|
|
|
|
|
cargo run -- init node2
|
|
|
|
|
cargo run -- init node3
|
|
|
|
|
cargo run -- init node4
|
2024-06-12 15:07:03 +01:00
|
|
|
```
|
|
|
|
|
|
2024-06-18 15:20:46 +01:00
|
|
|
To start a node with a cargo watch for development purposes (from the side-node dir), open up a few terminals and run:
|
2024-06-12 15:07:03 +01:00
|
|
|
|
|
|
|
|
```bash
|
2024-06-18 15:20:46 +01:00
|
|
|
cargo watch -x "run -- run -- node1"
|
|
|
|
|
cargo watch -x "run -- run -- node2"
|
|
|
|
|
cargo watch -x "run -- run -- node3"
|
|
|
|
|
cargo watch -x "run -- run -- node4"
|
2024-06-12 15:07:03 +01:00
|
|
|
```
|