How to Sync multible local grin nodes?

Hi,
scenario:

  • I have got a poor internet connection and want to save traffic and time while testing.
  • I want to test and try different grin node implementations and versions.
  • for example one instance is fully synced, or almost fully synced like missing 2 days.

can I connect the nodes directly, with LAN IPs somehow?

1 Like

Interesting question.

But I think it would be possible if you modify your grin-server.toml to connect to a local IP address.
From an example file grin-server.toml you can look at line 113:

#hardcoded peer lists for allow/deny
#will *only* connect to peers in allow list
#peers_allow = ["192.168.0.1:3414", "192.168.0.2:3414"]

#will *never* connect to peers in deny list
#peers_deny = ["192.168.0.3:3414", "192.168.0.4:3414"]

#a list of preferred peers to connect to
# grinnode.live HA IP for fast sync
#peers_preferred = ["213.239.215.236:3414"]

Using #peers_allow = ["192.168.0.1:3414", "192.168.0.2:3414"] should solve the problem in order to connect to one of your node.

1 Like

Thank you for your answer. I think that should work to connect rust-nodes. Does grin++ support direct IP connections?