Get Started With Mining on Mac OSX - From Start to the End

  • Here a short Tutorial of how to get started Plotting and Mining on Mac.


    Wallet:

    No need to download the big blockchain DB at the begging. Just use the web wallet.


    Link: https://wallet1.bitcoinstacks.com:8125/index.html - you can find more web wallets under "Burst Tools" menu point.

    And then activate your's account by going to the faucet http://burstcoin.biz/faucet


    For setup your wallet for pool mining use http://pool.burstcoin.eu

    Login to your wallet & paste bellow url and press enter


    https://wallet1.bitcoinstacks.com:8125/rewardassignment.html

    fill up:


    Find Set reward recipient and enter:

    - Passphrase: Your passphrase

    - Recipient: For pool.burstcoin.eu enter this number: BURST-7Z2V-J9CF-NCW9-HWFRY


    leave 2 field on the top empty and click submit on the button below the enter fields.



    Plotting:


    Use mjminer.


    Go to: https://github.com/r-majere/mjminer

    and download the zip file and unzip it.

    In terminal open that path(cd into mjminer-master directory)

    write make and press enter, if you see bellow error:


    Code
    1. --- Compiling for 64-bit arch ---
    2. CFLAGS=-D OSX -D AMD64 -O2 -Wall -D_FILE_OFFSET_BITS=64 -m64
    3. as -o shabal64-darwin.o shabal64-darwin.s
    4. shabal64-darwin.s:30:14: error: single quote way too long
    5. 64 'ptr' field (8 bytes)
    6. make: *** [shabal64-darwin.o] Error 1```


    open file shabal64-darwin.s in any text editor and replace the single quote with double quote on line 30 as below

    Code
    1. 64 'ptr' field (8 bytes)

    to


    Code
    1. 64 "ptr" field (8 bytes)


    Now in terminal command/write make and press enter. Hope this time it'll compile successfully.


    for first time plotting use command like below


    Code
    1. ./plot -k 6891xxx9176xxx3xxx -d /Volumes/ArchiveRB/plots -s 0 -n 409600 -m 8192 -x 2 -t 3


    -k: The number after it is your Numerical ID

    -d: The path where you want to create the plot file

    -s: Plot starting point, for first plot start with 0

    -n: How much space(in nonce) you want to plot(see more below)

    -m: How much memory you want to consume during plot your file

    -t: Number of thread of you CPU want to engage to do this, Enter sysctl -n hw.ncpu into the Terminal and this will return how many threads you mac has.

    -x: Select which core to use the default is 0 and is the slowest and 2 is the fast.


    Code
    1. -x 0 - original algo
    2. -x 1 - SSE4
    3. -x 2 - AVX2



    Use plot command generator: https://github.com/robertbiswa…er-Plot-Command-Generator

    Download the zip and open the index.html to your browser.

    Here is what @haitch thought me about it:


    "For first plot

    s 0 # Start at nonce 0 # next plot start at (-s value) + (-n value)

    -n 380928 # Each nonce = 256KB. Divide (disk size) by (262144), then divide by (stagger size -m) : round down, multiply by (stagger size.)

    -m 4096 # a nonce is 256KB, so 4096 nonces = 1GB. With more memory, multiply by amount to use

    -t ? # will depend on your CPU, it's the number of threads to use - set it to number of CPU threads, or threads - 1 to make it more usable"

    To Plot 100GB in Mac mini core i5 took 5 hours, to plot 1TB taking 36 hours.


    Optimize Plots:

    To optimize the earlier create plots run this command in same directory as you run the create plot command. Remember you need the same amount free space to optimize as the plot size is.


    for optimize plots use command like below:


    Code
    1. ./optimize /Volumes/ArchiveRB/plots/*


    Mining:

    Use burstcoin-jminer

    Link: https://github.com/de-luxe/burstcoin-jminer/releases


    Download and modify file named ```jminer.properties````. I did as below, you do with your data where needed.


    plotPaths=/Volumes/ArchiveRB/plots,/Volumes/ArchiveRB/plots/plot2

    poolMining=true

    numericAccountId=6891xxx9176xxx3xxx

    poolServer=http://pool.burstcoin.eu

    walletServer=http://pool.burstcoin.eu:8125

    refreshInterval=2000

    connectionTimeout=120000


    Leave other conf as it is they'll take the default value. This file has very good explanation hope you'll find that very helpful.

    Now go to into that directory using terminal and press command like below:


    Code
    1. sh run.sh


    *** So happy mining! *** :)


    Now i have upload created bash script so you can make multi plot files without running the same script multi times. The script automatic increase the plot nonce size.


    Remember to make the bash script executable with

    Code
    1. chmod u+x burst-plotting.sh

    Files

    Share the Burst love:thumbup:

    BURST-DKT2-VCSK-T353-CAWJV

    Edited 5 times, last by BurstEarn: Change burst pool. This pool require 2TB or above Added bash script for plotting Updated bash script ().

  • When I run this command for plotting.


    This is what I get.


    "d /Volumes/Burst/plots -s 0 -n 344064 -m 114688 -t 7

    Using original algorithm (no SSE4, no AVX2).

    Creating plots for nonces 0 to 344064 (90 GB) using 28672 MB memory and 7 threads"


    Is there a way to see how many nonces per minute I am writing?

  • Yes you need to wait between 5-10 minutes then it will show something like this:

    Code
    1. 26 Percent done. 2423 nonces/minute, 2:05 left  
  • To make it easier i have created an bash script so you can make multi plot files without running the same script multi times. The script automatic increase the plot nonce size.


    Hope you guys can used it :)

  • That depends if the two last number on the plot file not is same then the plot need to get optimize like this:

    Code
    1. 193xxxxxx606_23347200_409600_8192


    The optimize plot looks like this:

    Code
    1. 193xxxxxx606_23347200_409600_409600