|
4 years ago | |
---|---|---|
.. | ||
bin | 5 years ago | |
res | 5 years ago | |
src | 4 years ago | |
Cargo.toml | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
build.rs | 5 years ago | |
validator-node-banner.svg | 5 years ago |
Joystream node is the main server application that connects to the network, synchronizes the blockchain with other nodes and produces blocks if configured as a validator node.
To setup a full node and validator review the advanced guide from the helpdesk.
The latest pre-built binaries can be downloaded from the releases page.
Clone the repository and install build tools:
git clone https://github.com/Joystream/joystream.git
cd joystream/
./setup.sh
cargo build --release
This will install the executable joystream-node
to your ~/.cargo/bin
folder, which you would normally have in your $PATH
environment.
cargo install joystream-node --path node/
Now you can run
joystream-node --chain ./rome-testnet.json
This will build and run a fresh new local development chain purging existing one:
./scripts/run-dev-chain.sh
cargo test
./scripts/run-test-chain.sh
yarn test
To run the integration tests with a different chain, you can omit step running the local development chain and set the node URL using NODE_URL
environment variable.
Proposal grace periods should be set to 0, otherwise proposal network tests will fail.
Ensure Rome node is up and running, and node URL is set using NODE_URL
environment variable (default value is localhost:9944
).
yarn test-migration
We use cargo-fmt
to format the source code for consistency.
It should be available on your machine if you ran the setup.sh
script, otherwise install it with rustup:
rustup component add rustfmt
Applying code formatting on all source files recursing subfolders:
cargo-fmt