0

Does Solana have cluster id similar to Ethereum network id, for purpose of distinguishing different networks?

4
  • Do you mean detecting the cluster when you are inside the smart contract?
    – sohrab
    Aug 30, 2022 at 1:32
  • sort of. I mean if I setup a private cluster, for example, how to keep it isolated from mainnet-beta? will transactions be mixed or dispatched to wrong net/cluster? Aug 30, 2022 at 8:58
  • 1
    A cluster is just a set of validators that maintain the same ledger, starting from the same genesis block. If you don't share the genesis block with the main clusters, then it won't join those.
    – sohrab
    Aug 31, 2022 at 5:52
  • I better post it as an answer before mods come down on us
    – sohrab
    Aug 31, 2022 at 13:00

1 Answer 1

0

I think we teased out that the ask is whether running a private cluster has the risk of accidentally joining another cluster.

A Solana cluster is essentially a set of validators that maintain the same ledger, starting from the same genesis block.

If a private cluster has a different genesis block, it is unlikely other clusters will accept its comms.

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.