I have this situation:
  • I have 1 or 2 already running BTC nodes
  • I want to fire up another one, new
  • Tor / network is slow and sometimes I get sync stop on the new node Can I use some command line on the new bitcoin node and point it to sync from existing LAN IP nodes?
When I moved to using 'MyNode', I followed this guide to move the Blockchain from the old node to my new one. https://mynodebtc.github.io/bitcoin/data-from-other-node.html Maybe this will be of use to you.
reply
Thanks, but is not what I was looking for. I found the way. No need to shut down and/or copy anything.
  1. Open port 8333 on local LAN side on the existing running node
  2. on new node, open bitcoin-cli and use bitcoin-cli addnode "192.168.0.6:8333" "onetry" Done, the new node it start syncing through LAN from your existing node (already synced), on the fly until is 100%. Once is done, you can remove the local IP and let it to do its job from Bitcoin network. Is really fast and safe. More info here https://chainquery.com/bitcoin-cli/addnode
reply
Solved! You can speed up the production now! we need more nodes! add nodes!
reply
aaaand... we've just passed the 3000BTC on LN!
reply
Depending on your system you can copy the blockchain manually from the first node to the second. You should stop all bitcoin or lightning services before. Seach for copy blockchain and your setup name eg. raspiblitz nodl umbrel etc. on google.
I recommed just letting the new one sync for lazy or inexperienced users. I think @DarthCoin here knows how to umbrel for example ;)
reply
I know and I did that manual copy many times in the past. But I do not want that. I just want a new node to be like a "child" to the old ones and instead of going out in internet to use local nodes. That's all. So no interruption of existing nodes, just a smooth local sync. Once is done, to switch back to "normal" sync. I know it is a bitcoin-cli command but can't find right now. I remember I did something like that long time ago with Bitcoin Core/QT app, pointing to another node in LAN and grab the blocks from that local IP.
reply
Ok then you could try "bitcoin-cli addnode" commads for the new node and add the old one local.