Skip to content

Instantly share code, notes, and snippets.

@bradoyler
Last active January 22, 2018 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradoyler/683252fc7c2072f93c1796d8ad419241 to your computer and use it in GitHub Desktop.
Save bradoyler/683252fc7c2072f93c1796d8ad419241 to your computer and use it in GitHub Desktop.
install & sync monero blockchain on multiple mac/linux machines

Syncing Monero blockchain on multiple machines

Download & extract build:

mkdir monero
cd monero
 ## mac download
curl -J -L https://downloads.getmonero.org/cli/mac64 -o monero.tar.bz2 
## for linux download, use https://downloads.getmonero.org/cli/linux64
tar -vxjf monero.tar.bz2

Option 1 (network sync):

Sync from network, and export blockchain to thumbdrive

cd cli
./monerod # this will take hours...
./monero-blockchain-export # this will export the 25+GB file ~/.bitmonero/export/blockchain.raw

Then on other machines, import blockchain from a local file

./monero-blockchain-import --verify 0 --input-file ./blockchain.raw

Option 2 (download):

  • download the blockchain.raw file (~50GB) from a trusted source and import
wget https://downloads.getmonero.org/blockchain.raw
./monero-blockchain-import --verify 0 --input-file ./blockchain.raw

Confirm all is work and then delete the export:

rm blockchain.raw

Other tips for testing

Easiest way to CPU mine on Mac

  • warning: do not mine on laptop for extended periods. You will fry it.
xcode-select --install
brew install cmake libuv
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake .. -DWITH_AEON=OFF -DWITH_HTTPD=OFF
make

start script

./xmrig/build/./xmrig -o pool.minexmr.com:4444 -u WALLET_ADDR -k --donate-level=1%

to start process in background add -B to the command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment