|  | 
| 5 | 5 | #   * Closed source binary for the Madmax Gigahorse farmer image | 
| 6 | 6 | # | 
| 7 | 7 | 
 | 
| 8 |  | -# As of 2022-08-20 | 
| 9 |  | -HASH=d1a9e88b44ba37f61bfabcb68e80e83f8b939648 | 
| 10 |  | -CLASSIC_MADMAX_BRANCH=master | 
| 11 |  | - | 
| 12 |  | -if [[ (${mode} =~ ^fullnode.*  || ${mode} =~ "plotter") && (${blockchains} == 'chia' || ${blockchains} == 'chives') ]]; then | 
| 13 |  | -    if [ ! -f /usr/bin/chia_plot ] && [[ "${madmax_skip_build}" != 'true' ]]; then | 
| 14 |  | -        arch_name="$(uname -m)" | 
| 15 |  | -        apt update && apt install -y libsodium-dev cmake g++ git build-essential | 
| 16 |  | -        cd / | 
| 17 |  | -        git clone --branch ${CLASSIC_MADMAX_BRANCH} https://github.com/madMAx43v3r/chia-plotter.git  | 
| 18 |  | -        cd chia-plotter && echo "Building madmax on ${arch_name}..." | 
| 19 |  | -        if [[ -z "${madmax_relic_main}" ]]; then  # Hack on 2021-11-29 due to failed builds on some systems... | 
| 20 |  | -            sed -i 's/set(ENV{RELIC_MAIN} "1")/#set(ENV{RELIC_MAIN} "1")/g' CMakeLists.txt | 
| 21 |  | -        fi | 
| 22 |  | -        git submodule update --init | 
| 23 |  | -        git checkout $HASH | 
| 24 |  | -        ./make_devel.sh | 
| 25 |  | -        mkdir -p /usr/lib/chia-plotter | 
| 26 |  | -        cp -r ./build/* /usr/lib/chia-plotter | 
| 27 |  | -        ln -s /usr/lib/chia-plotter/chia_plot /usr/bin/chia_plot | 
| 28 |  | -        ln -s /usr/lib/chia-plotter/chia_plot_k34 /usr/bin/chia_plot_k34 | 
| 29 |  | -        cd / | 
| 30 |  | -        rm -rf chia-plotter | 
| 31 |  | -    fi | 
| 32 |  | -fi | 
|  | 8 | +MADMAX_BRANCH=$1 | 
| 33 | 9 | 
 | 
| 34 | 10 | # MMX Plotter binaries, https://github.com/madMAx43v3r/chia-gigahorse | 
| 35 |  | -# MMX and Gigahorse container gets the "new" Madmax plotters with compression, only available as binaries | 
| 36 |  | -if [[ (${mode} =~ ^fullnode.*  || ${mode} =~ "plotter") && (${blockchains} == 'mmx' || ${blockchains} == 'gigahorse') ]]; then | 
|  | 11 | +# Uses the "new" Madmax plotters with compression, only available as binaries | 
|  | 12 | +if [[ (${mode} =~ ^fullnode.*  || ${mode} =~ "plotter") ]]; then | 
| 37 | 13 |     if [ ! -f /usr/bin/chia_plot ] && [[ "${madmax_skip_build}" != 'true' ]]; then | 
| 38 | 14 |         arch_name="$(uname -m)" | 
| 39 | 15 |         if [[ "${arch_name}" == "x86_64" ]]; then | 
| 40 | 16 |             pushd /usr/bin | 
| 41 |  | -            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${GIGAHORSE_BRANCH}/cpu-plotter/linux/x86_64/chia_plot | 
| 42 |  | -            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${GIGAHORSE_BRANCH}/cpu-plotter/linux/x86_64/chia_plot_k34 | 
|  | 17 | +            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${MADMAX_BRANCH}/cpu-plotter/linux/x86_64/chia_plot | 
|  | 18 | +            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${MADMAX_BRANCH}/cpu-plotter/linux/x86_64/chia_plot_k34 | 
| 43 | 19 |             chmod 755 chia_plot* | 
| 44 |  | -            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${GIGAHORSE_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k26 | 
| 45 |  | -            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${GIGAHORSE_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k29 | 
| 46 |  | -            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${GIGAHORSE_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k30 | 
| 47 |  | -            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${GIGAHORSE_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k31 | 
| 48 |  | -            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${GIGAHORSE_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k32 | 
| 49 |  | -            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${GIGAHORSE_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k32_v3 | 
| 50 |  | -            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${GIGAHORSE_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k33 | 
|  | 20 | +            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${MADMAX_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k26 | 
|  | 21 | +            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${MADMAX_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k29 | 
|  | 22 | +            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${MADMAX_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k30 | 
|  | 23 | +            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${MADMAX_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k31 | 
|  | 24 | +            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${MADMAX_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k32 | 
|  | 25 | +            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${MADMAX_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k32_v3 | 
|  | 26 | +            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${MADMAX_BRANCH}/cuda-plotter/linux/x86_64/cuda_plot_k33 | 
| 51 | 27 |             chmod 755 cuda_plot* | 
| 52 |  | -            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${GIGAHORSE_BRANCH}/chiapos/linux/x86_64/ProofOfSpace | 
|  | 28 | +            curl -sLJO https://github.com/madMAx43v3r/chia-gigahorse/raw/${MADMAX_BRANCH}/chiapos/linux/x86_64/ProofOfSpace | 
| 53 | 29 |             chmod 755 ProofOfSpace | 
| 54 | 30 |             popd | 
| 55 | 31 |             echo "Completed download of Madmax binaries for plotting:" | 
|  | 
0 commit comments