maroon
The Rust playground where we put all the pieces together.
Pieces so far:
https://dkorolev.github.io/maroon/
Run in a single-node mode. When you need to test logic, but can sacrifice durability and don’t want to start etcd cluster.
make run-local PORT=3000 CONSENSUS_NODES=1
Runs imitation of gateway with the given key-range
make run-gateway KEY_RANGE=1 NODE_URLS=/ip4/127.0.0.1/tcp/3000
make start-test-etcd
make run-local PORT=3000
make run-local PORT=3001
make run-local PORT=3002
etcdctl --endpoints=http://localhost:2379 get --prefix /maroon/history
you should see published epochs but with empty increments
Right now it’s very dumb implementation that can only publish empty transactions from a given key-range. To run:
make run-gateway KEY_RANGE=2 NODE_URLS=/ip4/127.0.0.1/tcp/3000
NODE_URLS should contain at least one valid node url, in that case transaction will reach out all nodes in cluster eventually