Skip to content

Instantly share code, notes, and snippets.

@himu007
Created April 7, 2020 11:59
Show Gist options
  • Save himu007/4ca4563792361189deb5e3f6a3fdcfda to your computer and use it in GitHub Desktop.
Save himu007/4ca4563792361189deb5e3f6a3fdcfda to your computer and use it in GitHub Desktop.

Prepare AYA on 3P

Clone source

git clone https://github.com/sillyghost/AYAv2
cd AYAv2
git checkout 7c8498d

Create build.sh script and make it executable with the following contents

#!/bin/bash
# AYA build script for Ubuntu & Debian 9 v.3 (c) Decker (and webworker)
berkeleydb () {
    AYA_ROOT=$(pwd)
    AYA_PREFIX="${AYA_ROOT}/db4"
    mkdir -p $AYA_PREFIX
    wget -N 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
    echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz' | sha256sum -c
    tar -xzvf db-4.8.30.NC.tar.gz
    cd db-4.8.30.NC/build_unix/

    ../dist/configure -enable-cxx -disable-shared -with-pic -prefix=$AYA_PREFIX

    make install
    cd $AYA_ROOT
}

buildAYA () {
    git pull
    ./autogen.sh
    ./configure LDFLAGS="-L${AYA_PREFIX}/lib/" CPPFLAGS="-I${AYA_PREFIX}/include/" --with-gui=no --disable-tests --disable-bench --without-miniupnpc --enable-experimental-asm --enable-static --disable-shared --with-incompatible-bdb
    make -j$(nproc)
}

berkeleydb
buildAYA
echo "Done building AYA!"

Issue ./build.sh to compile the daemon

Link binaries

sudo ln -sf /home/$USER/AYAv2/src/aryacoin-cli /usr/local/bin/aryacoin-cli
sudo ln -sf /home/$USER/AYAv2/src/aryacoind /usr/local/bin/aryacoind

Create data dir

mkdir -p ~/.aryacoin

Create .conf file

nano ~/.aryacoin/aryacoin.conf

Enter the following into the conf and save it. (use strong user and pass value to your liking)

rpcuser=<USER>
rpcpassword=<PASS>
txindex=1
server=1
daemon=1
bind=127.0.0.1
rpcbind=127.0.0.1
rpcallowip=127.0.0.1

Start daemon and sync

aryacoind &

Generate compatible compressed AYA address and WIF

Use genkomodo.php from here https://github.com/DeckerSU/komodo_scripts/blob/master/genkomodo.php

Next step is to import key and restart daemon with -pubkey= option like other 3P coins.

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