Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Emilstud on July 01, 2018, 03:59:52 PM



Title: Connection between only two peers
Post by: Emilstud on July 01, 2018, 03:59:52 PM
Hi, I have a Bitcoin Full Node in my network. If I want to setup a new full node on my network I can tell my new node to download the chain from only this node. But can I tell my main full node to share only with this peer ? (It will be a tempoary thing until the second node is fully synced). Because downloads inside a Local Network are xtreme fast.


Title: Re: Connection between only two peers
Post by: Foxpup on July 01, 2018, 04:35:26 PM
Yes. Start Bitcoin Core with the -connect=<address> parameter to connect only to a specific peer. <address> can be either an IP address or hostname.


Title: Re: Connection between only two peers
Post by: Theb on July 01, 2018, 07:52:41 PM
You may also want to try binding the IP address as well as whitelisting the peers connecting to it in order for your transactions to be relayed and also as a safety precaution if you want your public node not to be accidentally banned by your private node. Even if the connection is a temporary thing you don't want any kind of hiccups along the way.


Title: Re: Connection between only two peers
Post by: jackg on July 01, 2018, 08:04:21 PM
Hi, I have a Bitcoin Full Node in my network. If I want to setup a new full node on my network I can tell my new node to download the chain from only this node. But can I tell my main full node to share only with this peer ? (It will be a tempoary thing until the second node is fully synced). Because downloads inside a Local Network are xtreme fast.

Why not just copy across the blockchain and then you don't need to use your internal network to download anything.

You could also try wiring both nodes to your router if you want to do this download a bit faster and then they can listen to each other at a much faster speed.


Title: Re: Connection between only two peers
Post by: Jet Cash on July 02, 2018, 09:02:02 AM

Why not just copy across the blockchain and then you don't need to use your internal network to download anything.


I was going to suggest using ftp if it is a multi-user network, but jackg beat me to it. I use an external SSD to move nodes between computers.

I'm thinking ot trying to use a remote blockchain as the base for a new pruned node, and I hoped that this would avoid the need to download the whole chain. Is there a way to do this?


Title: Re: Connection between only two peers
Post by: jackg on July 02, 2018, 10:06:46 AM
I'm thinking ot trying to use a remote blockchain as the base for a new pruned node, and I hoped that this would avoid the need to download the whole chain. Is there a way to do this?
If you take out the whole Bitcoin data folder then there's no reason it shouldn't providing the chains don't become corrupted on transport.