Skip to content
Snippets Groups Projects
Select Git revision
  • 928d5780f468ec643b1cf86ad159eb60404f03db
  • master default protected
  • network/gtest-1100 protected
  • 331-tests-de-distance-qui-ne-passent-plus
  • backup/network/gtest-1100
  • network/gtest-1110 protected
  • tuxmain/gtest-fix-c2
  • set_UniversalDividendApi_in_RuntimeApiCollection
  • network/gtest-1000 protected
  • upgradable-multisig
  • runtime/gtest-1000
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • runtime-1110 protected
  • gtest-1100 protected
  • gtest-1100-0.12.0 protected
  • gdev-1000-test protected
  • gtest-1000-0.11.1 protected
  • gtest-1000-0.11.0 protected
  • gtest-1000 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
41 results

smith.md

Blame
  • Hugo Trentesaux's avatar
    Hugo Trentesaux authored
    * docker rmi
    
    * refac doc
    
    move "rpc" to "mirror"
    add docker documentation in TOC
    
    * refac docker documentation
    e60f55a9
    History

    How to become a (black)smith

    Publish a node

    Duniter part

    See docker documentation to install, configure, and start a node. For a smith node, you want to set DUNITER_VALIDATOR to true.

    Reverse proxy part

    See nginx reverse proxy.

    Join the Smith WoT

    • add polkadot webextension to be able to authentificate with your account.
    • Go to any node with polkadotjs ui
    • Ask to join Smith WoT (you need to already be in the main WoT)
      • developer > extrinsics > YOUR_SMITH_ACCOUNT > smithMembership > requestMemberShip(metadata)
      • add your p2p endpoint (optional)
      • add your session key (follow point 1 to 4 from Validate blocks > Generate and publish your session key)
      • Send the query
    • Await smith certification : developer > extrinsics > CERTIFIER_SMITH_ACCOUNT > smithCert > addCert(receiver)

    When you have at least 3 certifications, your'in!

    Validate blocks (blacksmith work)

    • Generate and publish your session keys
      1. create an ssh bridge from your desktop/laptop to your server : ssh -L 9945:localhost:9945 SSH_USER@YOUR_SERVER
      2. In your browser go to polkadotjs : ws://localhost:9945
      3. In the UI : developer > appel RPC > author > rotateKey() and copy the result in clipboard
      4. In the UI : developer > extrinsics > YOUR_SMITH_ACCOUNT > authorityMembers > setSessionKeys(keys) then paste your session keys and run the query.
      5. In the UI : developer > extrinsics > YOUR_SMITH_ACCOUNT > authorityMembers > claimMembership(keys)
      6. wait 48h to verify you keep sync
    • Join
      • In the UI : developer > extrinsics > YOUR_SMITH_ACCOUNT > authorityMembers > goOnline()

    If you're not able to monitor, reboot, act on your node, goOffline() to avoid penality to the blockchain and to you.

    Upgrade your node with minimal interruption

    1. Modify docker image tag on your compose file
    2. Run docker compose pull, this will pull the new image.
    3. Run docker compose up -d --remove-orphans, this will recreate the container
    4. Verify that your node restarted well docker compose logs duniter-validator
    5. Remove the old image docker rmi duniter/duniter-v2s:OLD_TAG