Bitcoin Forum
June 24, 2024, 02:03:14 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Connection between only two peers  (Read 157 times)
Emilstud (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 17


View Profile
July 01, 2018, 03:59:52 PM
 #1

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.
Foxpup
Legendary
*
Offline Offline

Activity: 4396
Merit: 3062


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
July 01, 2018, 04:35:26 PM
 #2

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.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
Theb
Hero Member
*****
Offline Offline

Activity: 1680
Merit: 655


View Profile
July 01, 2018, 07:52:41 PM
 #3

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.

..bustadice..         ▄▄████████████▄▄
     ▄▄████████▀▀▀▀████████▄▄
   ▄███████████    ███████████▄
  █████    ████▄▄▄▄████    █████
 ██████    ████████▀▀██    ██████
██████████████████   █████████████
█████████████████▌  ▐█████████████
███    ██████████   ███████    ███
███    ████████▀   ▐███████    ███
██████████████      ██████████████
██████████████      ██████████████
 ██████████████▄▄▄▄██████████████
  ▀████████████████████████████▀
                     ▄▄███████▄▄
                  ▄███████████████▄
   ███████████  ▄████▀▀       ▀▀████▄
               ████▀      ██     ▀████
 ███████████  ████        ██       ████
             ████         ██        ████
███████████  ████     ▄▄▄▄██        ████
             ████     ▀▀▀▀▀▀        ████
 ███████████  ████                 ████
               ████▄             ▄████
   ███████████  ▀████▄▄       ▄▄████▀
                  ▀███████████████▀
                     ▀▀███████▀▀
           ▄██▄
           ████
            ██
            ▀▀
 ▄██████████████████████▄
██████▀▀██████████▀▀██████
█████    ████████    █████
█████▄  ▄████████▄  ▄█████
██████████████████████████
██████████████████████████
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
       ████████████
......Play......
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
July 01, 2018, 08:04:21 PM
Merited by suchmoon (5), Jet Cash (1)
 #4

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.
Jet Cash
Legendary
*
Offline Offline

Activity: 2744
Merit: 2462


https://JetCash.com


View Profile WWW
July 02, 2018, 09:02:02 AM
 #5


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?

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
July 02, 2018, 10:06:46 AM
 #6

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!