Bitcoin Forum
December 14, 2024, 03:32:20 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Using local full node with Bitcoin-Qt  (Read 410 times)
VelhoDoRio (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
February 19, 2017, 02:53:35 AM
 #1

Hello!
I'm new to bitcoin.
I read some stuff here and there.
I have an one old machine and I read about full nodes and why they are important to the network.
In other machine I installed bitcoin core. Downloaded all the blockchain (110G) and then copy all that data to the old machine, where I'm running the node.
Installed bitcoin core in node machine. And I'm running it like this
Code:
bitcoind -daemon -disablewallet

I can see my node on this site https://bitnodes.21.co/#join-the-network

In my computer, where I don't have the node, I edited bitcoin.conf to connect only to my node
Code:
connect="lan ip"
And I also enabled prune. I don't want all the blockchain in both machines.

Is this the way to do it? Owning your full node?
It is secure?

For now I'm seeing that Bitcoin-Qt take almost the same time to sync to my node that when using all the bitcoin network.
But still I change some settings both on the node and in my machine to use less resources -par=1.
And Bitcoin-Qt shows only one connection. So I think that is working fine.

It will be nice to make Bitcoin-Qt working through SSH. My node machine don't have a display so no need for X.
And also using Multibit-HD only in my node. I like the feature of using multi wallets at same time.

Just for anyone would think this is useful or want to give any ideia.
I add this to .bashrc of the node.
Code:
alias BTC_start="bitcoind -daemon -disablewallet"
alias BTC_stop="bitcoin-cli stop

And I found this bash script bitcoindSynced.sh
Code:
#!/bin/bash

bitcoindSynced() {

blockCount=`bitcoin-cli getblockcount`

blockChain=`wget -O - http://blockchain.info/q/getblockcount`

blockDiff=`expr $blockChain - $blockCount`

if [ $blockDiff = 0 ] ; then
  echo "up to date"
else
  echo "$blockDiff blocks behind"
fi

} 2>/dev/null

bitcoindSynced

That shows that the node is synced or not.
VelhoDoRio (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
February 19, 2017, 02:39:31 PM
 #2

I think this the wrong section for this matter.

My thread can be moved to  Development & Technical Discussion, plz?
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!