Mavryk Node Package
Supports node, baker and vdf mode
- If not already installed, install ami:
wget -q https://raw.githubusercontent.com/mavryk-network/application-management-interface/master/install.sh -O /tmp/install.sh && sh /tmp/install.sh- Create a directory for your application. It should not be part of user home folder structure. For example, you can use
/mns/mvrk1. - Create app.json or app.hjson with the configuration you prefer, based on the mode you want to use: node, baker, or vdf. Here are examples for each:
Node:
{
id: node
type: mvrk.node
configuration: {
"CONFIG_FILE": {
"p2p": {
"bootstrap-peers": [ "boot.mavryk.network" ],
"listen-addr": "[::]:9732"
}
}
}
user: mvrknode
}
Baker:
{
id: baker
type: mvrk.node
configuration: {
NODE_TYPE: baker
}
user: mvrkbaker
}
VDF:
{
id: vdf
type: mvrk.node
configuration: {
NODE_TYPE: vdf
}
user: mvrkvdf
}
The above examples are for different node types. Depending on the mode, you'll need to adjust the NODE_TYPE fields accordingly. CONFIG_FILE is content of node configuration and is respected in all modes.
- Run
ami --path=<your app path> setup, for example,ami --path=/mns/mvrk1 setup.- run
ami --path=<your app path> --helpto see available commands.
- run
- Start your node with
ami --path=<your app path> start. - Check the node's info with
ami --path=<your app path> info.
- Stop the app:
ami --path=<your app path> stop. - Change
app.jsonorapp.hjsonas required. - Reconfigure the setup:
ami --path=<your app path> setup --configure. - Restart the app:
ami --path=<your app path> start.
- Stop the app:
ami --path=<your app path> stop. - Remove the app:
ami --path=<your app path> remove --all.
- Stop the app:
ami --path=<your app path> stop. - Remove the app:
ami --path=<your app path> remove --chain. - (optional) bootstrap the app with
ami --path=<your app path> bootstrap <url> <block hash> - Restart the app:
ami --path=<your app path> start.
To enable trace level printout, run ami with -ll=trace. For example: ami --path=/mns/mvrk1 -ll=trace setup.
Remember to adjust the path according to your app's location.
Sources can be updated with:
eli src/__mvrk/update-sources.lua https://gitlab.com/mavryk-network/mavryk-protocol/-/packages/45650499 PtAtLas PtBoreas