Skip to content

Instantly share code, notes, and snippets.

@venglov
Last active September 2, 2021 17:36
Show Gist options
  • Save venglov/7a64c596ee7aeb03d081b04cb02fbbd6 to your computer and use it in GitHub Desktop.
Save venglov/7a64c596ee7aeb03d081b04cb02fbbd6 to your computer and use it in GitHub Desktop.
How to update the node & transfer hals to punks & run the node or delegate your funds
  1. Update your node

    You need to build the binary file from source or download it from the GH:

    1. To build it from source:
      go to the nym directory on your server and run the next commands

       git fetch
       git checkout v0.11.0
       cargo build —release
    2. To download it from the GH:
      using curl:

      curl https://github.com/nymtech/nym/releases/download/v0.11.0/nym-mixnode_linux_x86_64 -o nym-mixnode

      or using wget:

      wget -O nym-mixnode https://github.com/nymtech/nym/releases/download/v0.11.0/nym-mixnode_linux_x86_64
  2. Run (in target/release/ if you built it from source)

    ./nym-mixnode upgrade --id your-node-id
  3. Then you need to get your punk address
    Go to the https://testnet-milhon-wallet.nymtech.net/ and enter your mnemonic seed
    And in the ‘send’ section you will find your punk address

  4. Run

    ./nym-mixnode sign --id your-node-id --text "@your_telegram_username your-punk-wallet-address"

    and follow the instruction in your terminal

IF YOU WANT TO RUN YOUR OWN MIXNODE

  1. Create the systemd daemon:
    sudo nano /etc/systemd/system/nym-mixnode.service
    and write the following
    [Unit]
    Description=NYM-Mixnode
    
    [Service]
    User=root
    ExecStart=/path/to/nym-mixnode run --id 'your-node-id'
    KillSignal=SIGINT
    Restart=on-failure
    RestartSec=30
    StartLimitInterval=350
    StartLimitBurst=10
    LimitNOFILE=65535
    
    [Install]
    WantedBy=multi-user.target
    press 'control+x' and 'y' and finally run:
    sudo systemctl daemon-reload
    sudo systemctl enable nym-mixnode
    sudo systemctl start nym-mixnode
  2. Now you need to bond your funds.
    Run the command bellow and follow the instruction in your terminal:
    sudo journalctl -u nym-mixnode -o cat | grep 'To bond your mixnode, go to https://testnet-milhon-wallet.nymtech.net/.' -A 4

IF YOU WANT TO DELEGATE

  1. Go to the ‘delegate’ section where you will be able to delegate your punks
    https://testnet-milhon-wallet.nymtech.net/



    If you don't know who to delegate your punks to, I can offer my node :)

    47cZvMd9VweYTBXr8phQyXSXRLwNTkrd27xh2WNnfYbM
    

    Don't hesitate to write me in tg if you have any problems

@gyrusdentatus
Copy link

add an option to get the binaries with curl or wget such as:
curl https://github.com/nymtech/nym/releases/download/v0.11.0/nym-mixnode_linux_x86_64 -o nym-mixnode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment