Skip to content

Instantly share code, notes, and snippets.

@getwildr
Created August 25, 2022 15:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save getwildr/3477b0962a57ef137a433ff69bcf863a to your computer and use it in GitHub Desktop.
Save getwildr/3477b0962a57ef137a433ff69bcf863a to your computer and use it in GitHub Desktop.

Params needed in config.json

"EnableP2P": true,
"TargetNumberOfActivePeers": 20,
"TargetNumberOfEstablishedPeers": 50,
"TargetNumberOfKnownPeers": 100,
"TargetNumberOfRootPeers": 100,
"TestEnableDevelopmentNetworkProtocols": true,

BP example

{
  "LocalRoots": {
    "groups": [
      {
        "localRoots": {
          "accessPoints": [
           {
             "address": "IP.OF.YOUR.RELAY1",
             "port": 3001
           },
           { 
             "address": "IP.OF.YOUR.RELAY2",
             "port": 3002
           }
          ],
          "advertise": false
        },
        "valency": 2
      }
    ]
  },
  "PublicRoots": []
}

Relay Example

{
  "LocalRoots": {
    "groups": [
      {
        "localRoots": {
          "accessPoints": [
            {
               "address": "IP.OF.YOUR.BP",
               "port": 6000
            }
          ],
          "advertise": false
        },
        "valency": 1
      }
    ]
  },
  "PublicRoots": [
    {
      "publicRoots": {
        "accessPoints": [
          {
            "address": "relays-new.cardano-mainnet.iohk.io",
            "port": 3001
          }
        ],
        "advertise": false
      }
    }
  ],
  "useLedgerAfterSlot": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment