1

Is there a way to start a parachain node in CI and instruct it through a binary flag not to sync with the relay chain? I think it would be the same to say I want the P2P functionality to be off. Thank you.

2 Answers 2

0

You can run with --in-peers 0 --out-peers 0 to prevent sync connecting to any peers.

0
3

Specifying the option --reserved-only does spawn a private network. If the --reserved-nodes option is missing or if it contains invalid multiaddresses, the node won't connect and sync with other nodes.

When launching a node, the options after the double dash -- affect the relay chain, e.g. ./parachain --reserved-only targets the parachain, ./parachain -- --reserved-only targets the relay chain.

2
  • Thank you for your answer. So, if I want to start an isolated parachain node in CI, should I be passing both --reserved-only -- --reserved-only? I only need this node temporarily to read metadata.
    – demisx
    Jan 27, 2023 at 17:07
  • 1
    @demisx If you plan to completely isolate the node, i.e. neither the parachain nor the relaychain should connect to other peers, than this combination of command options is suitable.
    – sea212
    Jan 27, 2023 at 17:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.