Skip to content

Instantly share code, notes, and snippets.

@cowboy-bebug
Created June 10, 2022 01:25
Show Gist options
  • Save cowboy-bebug/04305459c3092d56880bc2bd6d4cf528 to your computer and use it in GitHub Desktop.
Save cowboy-bebug/04305459c3092d56880bc2bd6d4cf528 to your computer and use it in GitHub Desktop.
Checklist to start hacking on a Substrate node

Running a Substrate-based blockchain node

  • Prerequisite reading
    • Start a private network tutorial - just read the below sections (there's no need to read the whole thing)
    • subkey
      • I understand the concept of generating keys
      • I understand the concept of inspecting keys and
        • inspecting a private key under different schemes result in different public keys
        • inspecting a private key under different network result in different SS58 address (hex-encoded public address is the same)?
      • I understand the concept of HD derivation and password protection of keys
      • I understand how to generate node keys
      • I understand what the well-known keys are
    • Finally here's a reference Compose file for Ajuna nodes

Troubleshooting

  • Validators are not producing / finalising blocks
    • Check correct keys are inserted for corresponding validators (as described in chain spec)
    • Make sure only one pair of keys are inserted for each validator (validators will freeze as they don't know which keys to use)
  • Peer discovery isn't working
    • Check bootnode URL is correct
      • Make sure the bootnode has node key set
      • Make sure to use the bootnode's peer ID
      • Check the IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment