Author

Topic: running bitcoin (Read 144 times)

legendary
Activity: 2842
Merit: 7333
Crypto Swap Exchange
May 31, 2021, 04:53:43 AM
#6
Thanks Smiley

I indeed only have 512GB and discovered the blockchain size the hard way this morning when bitcoind shut down and MacOS complained about disk utilization. I got to 96% ! So close... I'll try out pruned mode today. I ordered an external SSD to download the entire blockchain. I want to study the data and replicate some of the indicators Glassnode developed Smiley.

Concerning ZeroMQ & the GUI, I did eventually compile with these flags enabled. Everything seems to work as expected except the GUI. The latter "unexpectedly stops" whenever I try to open it. Anyways, I don't need wallet (or GUI) functionality since I'm only running a node to support the network and study it.

Since you mention studying Bitcoin Core / Bitcoin full node, take note pruned node have few limitation and might hinder you to replicate report by Glassnode. Moving your blockchain files to external storage is better option for you.
newbie
Activity: 3
Merit: 6
May 30, 2021, 08:33:17 AM
#4
Welcome to Bitcointalk Smiley. Since you mention you run Bitcoin (full node) for first time, you need to know current blockchain size is almost 400GB. If your Macbook Pro M1 has 512GB or less, you might want to use pruned mode which only store few last hundred blocks.

Your ./configure flags disabled Berkeley DB which also disables wallet functionality. Is this what you want?

I also notice OP explicitly disable GUI (although looks like OP prefer bitcoin-cli) and ZeroMQ which could be useful to build application which rely on Bitcoin Core data (although it's more common to use RPC-JSON).

Thanks Smiley

I indeed only have 512GB and discovered the blockchain size the hard way this morning when bitcoind shut down and MacOS complained about disk utilization. I got to 96% ! So close... I'll try out pruned mode today. I ordered an external SSD to download the entire blockchain. I want to study the data and replicate some of the indicators Glassnode developed Smiley.

Concerning ZeroMQ & the GUI, I did eventually compile with these flags enabled. Everything seems to work as expected except the GUI. The latter "unexpectedly stops" whenever I try to open it. Anyways, I don't need wallet (or GUI) functionality since I'm only running a node to support the network and study it.
newbie
Activity: 3
Merit: 6
May 30, 2021, 08:22:28 AM
#3
Your ./configure flags disabled Berkeley DB which also disables wallet functionality. Is this what you want?

Inside the bitcoin source repository, there's a script called contrib/install-db4.sh which will build a Berkeley DB in the root folder of the bitcoin source tree.

It is used like this:

Code:
# cd to the bitcoin root folder
./contrib/install-db4.sh "$(pwd)"
export BDB_PREFIX="$(pwd)/db4"
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"  # Add your other options here

Thank you for these indications, I didn't know about the script Smiley. I was compiling bitcoin for the first time and turned off everything which gave me trouble. I did eventually build with Berkeley DB enabled.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
May 30, 2021, 03:28:04 AM
#2
Your ./configure flags disabled Berkeley DB which also disables wallet functionality. Is this what you want?

Inside the bitcoin source repository, there's a script called contrib/install-db4.sh which will build a Berkeley DB in the root folder of the bitcoin source tree.

It is used like this:

Code:
# cd to the bitcoin root folder
./contrib/install-db4.sh "$(pwd)"
export BDB_PREFIX="$(pwd)/db4"
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"  # Add your other options here
newbie
Activity: 3
Merit: 6
May 29, 2021, 05:34:51 PM
#1
Dear Bitcoiners,

Today i am running bitcoin for the first time, on a MacBook Pro M1 (ARM). I compiled towards arm64-apple-darwin20.4.0. After installing dependencies with homebrew, here are the steps I followed:

Code:
git clone [email protected]:bitcoin/bitcoin.git

# install dependencies forcing compilation towards arm64 architecture
cd bitcoin/depends
echo "echo arm64-apple-darwin20.4.0 > config.guess"
chmod +x config.guess
make

# compile bitcoin
cd ..
./autogen.sh
CPPFLAGS=-I/opt/homebrew/opt/libevent/include ./configure --without-bdb --disable-zmmq --disable-zmq --with-boost=/opt/homebrew/opt/boost/ --with-gui=no --prefix=$PWD/depends/arm64-apple-darwin20.4.0

# run it :D
./src/bitcoind

This is awesome.
Jump to: