328398ca68
* Use executor in tests instead of nomos node * Executor config from node config * Bring generics to the testing game * Fill in missing gaps in test * Implement testnode wrapper * Use sleep on dispersal service instead * Fix cfgsync * Clippy happy * Clippy happy tests * Mixnet config in tests for validator * Tests: General config and multiple nodes (#832) * Use executor in tests instead of nomos node * Bring generics to the testing game * Fill in missing gaps in test * Clippy happy * Mixnet config in tests for validator * Derive different types of configs from general in tests * Validator and executor in cfgsync --------- Co-authored-by: danielSanchezQ <3danimanimal@gmail.com> * Tests executor node mix config (#834) * Merge branch 'master' into tests-executor-node-mix-config * add mix configs --------- Co-authored-by: danielSanchezQ <3danimanimal@gmail.com> Co-authored-by: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> |
||
---|---|---|
.cargo | ||
.github | ||
book | ||
ci | ||
cl/cl | ||
clients/executor-http-client | ||
consensus | ||
ledger/cryptarchia-ledger | ||
nodes | ||
nomos-cli | ||
nomos-core | ||
nomos-da | ||
nomos-libp2p | ||
nomos-mix | ||
nomos-services | ||
nomos-utils | ||
proof_of_leadership | ||
testnet | ||
tests | ||
.codecov.yml | ||
.dockerignore | ||
.env.example | ||
.env.testnet | ||
.gitignore | ||
Cargo.toml | ||
Dockerfile | ||
README.md | ||
compose.static.yml | ||
compose.yml | ||
rustfmt.toml | ||
shell.nix | ||
sim_config.json.example |
README.md
nomos-node
Nomos blockchain node mvp
Project structure
nomos-core
: Nomos core is the collection of essential structures for the Nomos mvp and experimental nodes.nomos-services
: Nomos services is the collection of components that are used as building blocks of the Nomos node prototype and the experimental nodes.- consensus
- log
- http
- mempool
- network
- metrics
nodes
: Nomos nodes is the collection of nodes that are used to run the Nomos mvp and experimental nodes.nomos-node
: main implementation of the Nomos mvp node.mockpool-node
: node with single mempool service, used to measure transaction dissemination.
Services
The Nomos node uses Overwatch
as its main internal framework. This means that services request communication channels
to other services to interchange information through a specified messaging API.
Service architecture
Most of the services are implemented with the same idea behind. There is a front layer responsible for handling the Overwatch
service
and a back layer that implements the actual service logic.
This allows us to easily replace components as needed in a type level system. In any case, a node can be setup in a declarative way composing the types. For example:
...
#[derive(Services)]
struct MockPoolNode {
logging: ServiceHandle<Logger>,
network: ServiceHandle<NetworkService<Waku>>,
mockpool: ServiceHandle<MempoolService<WakuAdapter<Tx>, MockPool<TxId, Tx>>>,
http: ServiceHandle<HttpService<AxumBackend>>,
bridges: ServiceHandle<HttpBridgeService>,
}
Docker
To build and run a docker container with Nomos node run:
docker build -t nomos .
docker run nomos /etc/nomos/config.yml
To run a node with a different configuration run:
docker run -v /path/to/config.yml:/etc/nomos/config.yml nomos /etc/nomos/config.yml