Jump to content

buzzkillb

Moderators
  • Content Count

    257
  • Joined

  • Last visited

  • Days Won

    40
  • Feedback

    N/A

buzzkillb last won the day on June 9

buzzkillb had the most liked content!

Community Reputation

144 Excellent

4 Followers

About buzzkillb

  • Rank
    Senior Denarian

Personal Information

  • DNR Address
    DBuzzkiLLrF4aTeSbYGWUD9bxKhud9DSiV

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Not as elegant as I was hoping for, but this appears to work and be somewhat hands off.
  2. to change coinbase name from yiimp to something else. sudo nano ~/yiimp-install-only-do-not-run-commands-from-this-folder/stratum/coinbase.cpp You are looking for this line. void coinbase_create(YAAMP_COIND *coind, YAAMP_JOB_TEMPLATE *templ, json_value *json_result) { char eheight[32], etime[32]; char entime[32] = { 0 }; ser_number(templ->height, eheight); ser_number(time(NULL), etime); if(coind->pos) ser_string_be(templ->ntime, entime, 1); char eversion1[32] = "01000000"; if(coind->txmessage) strcpy(eversion1, "02000000"); char script1[4*1024]; sprintf(script1, "%s%s%s08", eheight, templ->flags, etime); char script2[32] = "7969696d7000"; // "yiimp\0" in hex ascii change 7969696d7000 to a new hex code. I used https://www.rapidtables.com/convert/number/ascii-to-hex.html to convert ascii to hex. compile stratum cd ~/yiimp-install-only-do-not-run-commands-from-this-folder/stratum sudo make shut down your stratum, i logged into root using sudo -s, and shutdown the tribus screen. replace the new stratum you just compiled, stay inside of the compiled stratum folder. sudo cp -r stratum /var/stratum Restart stratum Mine like a boss and check your blocks. https://www.coinexplorer.net/D/block/2043975
  3. I think this is an easier way to setup an electrumx server. It's not that bad once you go through the steps. Trying to be thorough. Install docker My github for this. https://github.com/buzzkillb/docker-electrumx We will end up running denariusd in a container and electrumx in a container. First create a folder on your server or vps to store the denarius blockchain. This can be anywhere, but lets make this easy. cd ~ mkdir .denarius cd .denarius nano denarius.conf Sample denarius.conf, pay attention as we will need the rpcuser and rpcpassword. rpcuser=denariusrpc rpcpassword=MAKEUPSOMEPASSWORD maxconnections=125 rpcport=32369 port=33369 daemon=0 listen=1 server=1 discover=1 txindex=1 bind=127.0.0.1:33369 We either sync from block 0 or use chaindata. You decide. Now we can run the denariusd docker container. docker run \ --net=host \ --name=denariusd \ -t -d \ -p 33369:33369 \ -p 32369:32369 \ -v ~/.denarius:/data \ -P buzzkillb/denariusd:latest To check the sync docker logs denariusd -f ctrl+c to exit out of that whenever Now to run electrumx server (wait to be fully sync'd). docker run \ --name=electrumx \ --net=host \ --ulimit nofile=5120:5120 \ -t -d \ -v ~/electrumx:/data \ -e DAEMON_URL=http://denariusrpc:[email protected]:32369 \ -e COIN=Denarius \ -p 50002:50002 \ buzzkillb/docker-electrumx:latest To watch these logs. docker logs electrumx -f Once running check it can be found. openssl s_client -connect electrumx1.denarius.pro:50002 Working on an easy way to do the compaction. If you stop the container and then run docker run \ --name=electrumx-compact \ --net=host \ --ulimit nofile=5120:5120 \ -t -d \ -v ~/electrumx:/data \ -e DAEMON_URL=http://denariusrpc:[email protected]:32369 \ -e COIN=Denarius \ -p 50002:50002 \ buzzkillb/docker-electrumx:dcompact This will compact the database using Denarius environment variables. With both containers electrumx and electrumx-compact both up, we can now add a cronjob to stop server, start compact, and restart server. crontab -e Run daily, this is overkill. Best to run every 14 days or less. 0 0 * * * docker stop electrumx >/dev/null 2>&1 1 0 * * * docker start electrumx-compact >/dev/null 2>&1 6 0 * * * docker start electrumx >/dev/null 2>&1
  4. not sure if nativetor completely works with this so instead install tor on ubuntu https://2019.www.torproject.org/docs/debian.html.en docker-compose.yml FS01: image: buzzkillb/denariusd:latest volumes: - ~/D/FS01:/data net: host FS02: image: buzzkillb/denariusd:latest volumes: - ~/D/FS02:/data net: host FS03: image: buzzkillb/denariusd:latest volumes: - ~/D/FS03:/data net: host denarius.conf rpcuser=denariusrpc rpcpassword=changethispassword rpcallowip=127.0.0.1 daemon=0 port=9999 fortunastake=1 listen=1 externalip=onionnodeaddy.onion fortunastakeaddr=onionnodeaddy.onion:9999 fortunastakeprivkey=6YOURFortunaStakePRIVATEKEYFo5F7vx922puZDGCwY1JVjb tor=127.0.0.1:9050 bind=127.0.0.1:33301 rpcport=32301 addnode=aibn2hiqsqwdrmbb.onion addnode=jawnwg5qlyyhjcxf.onion increment the 1 at the end of bind and rpcport up by 1 for each FS in your docker-compose.yml directory docker-compose up -d
  5. Difference in the docker-compose.yml file to run nativetor=0 or nativetor=1 ipv4: image: buzzkillb/denariusd:latest volumes: - ~/D/noTOR:/data nativetor: image: buzzkillb/denariusd:latest volumes: - ~/D/yesTOR:/data - ~/D/yesTOR:/root/.denarius after running, to check you are on an onion address docker exec dd_nativetor_1 denariusd -datadir=/data getinfo
  6. This may or may not be an easier way to control your fortunastake servers. Its for sure an easy way to run more than 1 on same PC as long as that PC / raspberry pi / tablet?? / whatever can run Docker. Can also run nativetor in each container, which is an interesting way to run onion FS's. If you do this guide once, you will see why I went through so much trouble to write this out. Github is located here with the dockerfiles https://github.com/buzzkillb/denariusDocker How to install docker on ubuntu 16.04. Might be different on newer releases, disco dingo has a snap package, just putting basic install here to show what the commands are. https://docs.docker.com/install/linux/docker-ce/ubuntu/ sudo apt-get update sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io To test it installed correctly. sudo docker run hello-world modify your user account so you dont need to run sudo on the docker commands. sudo usermod -aG docker your-user Now to the good stuff. as of v3.3.9.1 denariusd creates a denarius.conf in the datadir, so we can handle this 2 ways. Either run the docker daemon and let it autocreate denarius.conf and then edit that, or just create denarius.conf before running the docker daemon. The main thing to know is that the docker daemon requires daemon=0. Setup typical denarius.conf to enable fortunastake server. typical chaindata directory is ~/.denarius but this can go anywhere. like ~/D/FS01 example denarius.conf rpcuser=USEARANDOMNAME rpcpassword=USEARANDOMPASSWORD daemon=0 port=9999 fortunastake=1 fortunastakeprivkey=6J8tAUsVchangethisofcoursehXBgfdeewqsdghySWEQEeb4XGSC251sM7bYQgEXh7 Lets run from ~/.denarius to get started. This will run the docker container of latest wallet daemon compiled from source using ubuntu 18.04 as the OS. I also created one that uses ubuntu 16.04, and one that works on armv7 devices like a raspberry pi3. For now lets use the first one I made. docker run --name=denariusd --rm -t -d -v ~/.denarius:/data -P buzzkillb/denariusd What this does is pulls and runs the docker daemon container and uses your ~/.denarius folder as the data storage. So if you shutdown the container your data isnt inside of that container and gets lost on any shutdowns. A hint: this folder is where your denarius.conf is located. change ~/.denarius to ~/D/FS01 and now you can make many if you want. Just stick a denarius.conf in FS01, FS02, FS03, etc. Some basic commands to use this. docker exec denariusd denariusd -datadir=/data getinfo docker exec denariusd denariusd -datadir=/data getbalance docker exec denariusd denariusd -datadir=/data fortunastake status To read the logs, (this is like tail -f debug.log) docker logs denariusd -f Now lets say you ran many of these containers for many fortunastakes. You would run it like this. docker run --name=FS01 --rm -t -d -v ~/D/FS01:/data -P buzzkillb/denariusd Even easier, install docker-compose https://docs.docker.com/compose/install/ and then create a directory to store a docker compose file in, like cd ~ mkdir bigd cd bigd nano docker-compose.yml Stick this in the yml file. FS01: image: buzzkillb/denariusd:latest volumes: - ~/D/FS01:/data FS02: image: buzzkillb/denariusd:latest volumes: - ~/D/FS02:/data FS03: image: buzzkillb/denariusd:latest volumes: - ~/D/FS03:/data then in that folder docker-compose up -d This will start 3 fortunastakes on the same PC. Just need about 700mb of ram per FS. I have some more examples of commands on the github link, but this should get someone started on making this a bit easier. I will build the latest daemon on these, so if you want to autoupdate whenever these happen, try out watchtower. https://github.com/containrrr/watchtower docker run -d \ --name watchtower \ -v /var/run/docker.sock:/var/run/docker.sock \ containrrr/watchtower This will stop the container, pull the latest, and restart from same command used to start. I am also using dozzle to watch the logs from a web browser. https://github.com/amir20/dozzle docker run --name dozzle -d --volume=/var/run/docker.sock:/var/run/docker.sock -p 8888:8080 amir20/dozzle:latest
  7. Ubuntu 18.04 Daemon sudo apt-get update -y && sudo apt-get upgrade -y sudo apt-get install -y git unzip build-essential libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev libgmp-dev libevent-dev autogen automake libtool sudo apt-get install make wget https://www.openssl.org/source/openssl-1.0.1j.tar.gz tar -xzvf openssl-1.0.1j.tar.gz cd openssl-1.0.1j ./config make depend make sudo make install sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` cd ~ openssl version -v git clone https://github.com/carsenk/denarius cd denarius git checkout v3.4 git pull cd src OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib make -f makefile.unix sudo mv ~/denarius/src/denariusd /usr/local/bin/denariusd denariusd QT sudo apt-get update -y && sudo apt-get upgrade -y sudo apt-get install -y git unzip build-essential libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev libevent-dev autogen automake libtool libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qt5-default sudo apt-get install make wget https://www.openssl.org/source/openssl-1.0.1j.tar.gz tar -xzvf openssl-1.0.1j.tar.gz cd openssl-1.0.1j ./config make depend make sudo make install sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` cd ~ openssl version -v git clone https://github.com/carsenk/denarius cd denarius git checkout v3.4 git pull qmake "USE_UPNP=1" "USE_QRCODE=1" LIBS=-lboost_chrono OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib denarius-qt.pro make ./Denarius
  8. If you are having issues with the wallet, go into your QT with funds address. Don't worry about syncing yet. Go to debug console to dump your private key. dumpprivkey Daddress Save this private key to import into Coinomi. Be secure with the private key as anyone can use this to steal from you. Install Coinomi and add Denarius. On Android go to Denarius and then click 3 dots and Sweep Wallet. Input Private Key you just dumped, and now your funds can be accessed.
  9. dozzle is a really easy way to monitor the docker container logs https://github.com/amir20/dozzle
  10. Docker can be used to run a denariusd wallet daemon. It can also run multple FortunaStakes very easily. No need to mess with compiling or downloading binaries. My github has some basics for the docker image I created. https://github.com/buzzkillb/denariusDocker First install docker on ubuntu. Don't forget to usermod your user account to run docker commands without using sudo. https://docs.docker.com/install/linux/docker-ce/ubuntu/ Once docker-ce is running lets grab my docker image. docker run --name=denariusd --rm -t -v ~/.denarius:/data -P buzzkillb/denariusd First thing we notice is that we need a denarius.conf in the ~/.denarius folder. Lets make one with what we need. nano ~/.denarius/denarius.conf rpcuser=usernamechangeme rpcpassword=passwordchangeme Save and now run the above command again. docker run --name=denariusd --rm -t -v ~/.denarius:/data -P buzzkillb/denariusd Was that easy or what? Now to run this in the background add -d flag. docker run --name=denariusd --rm -t -d -v ~/.denarius:/data -P buzzkillb/denariusd With the output not being shown. Lets watch the printtoconsole lines in the docker container. docker logs denariusd -f To list all your containers. docker ps To stop your container. docker stop denariusd You can run more than 1 container of denariusd, example below docker run --name=FS01 --rm -t -d -v ~/FS01:/data -P buzzkillb/denariusd Have fun!
  11. How to run a Fortunastake in Windows. At least 700mb of ram per FS and a fast hard drive if you plan to have a lot of these. I wouldnt suggest using Windows, and instead use Ubuntu 16.04 server. But crypto people have reasons. Download latest Windows QT Wallet or compile it yourself. Make a directory to put the wallet in. example: c:\denarius\denarius01.exe Create a .bat file to run the wallet. example c:\denarius\start01.bat Create a directory of your first FS. example c:\denarius\D01 start01.bat c:\denarius\denarius01.exe -datadir=c:\denarius\D01 Fill out the denarius.conf in the c:\denarius\D01 folder like usual. If you have conflicting port issues, easiest thing to do is add to denarius.conf listen=0 For IP address, use whatever you want. Also set externalip=THATADDRESS in this .conf file. They have to be proper IP's, but dont have to be connectable. Examples externalip=1.2.3.4 externalip=[2006:1] externalip=denarius.onion Wait for the wallet to sync and then start-alias from your hot wallet, hopefully on a separate PC. I hope you can see where this is headed by using a numbering scheme. Also using separate denarius.exe wallets makes this easier to track in task manager. But you can use a single denarius.exe and run a separate .bat calling that same denarius.exe over and over. Will add how to make these TOR onion nodes later.
  12. How to compile QT and daemon on various versions of Ubuntu. Ubuntu 16.04 Daemon sudo apt-get update -y && sudo apt-get upgrade -y sudo apt-get install -y git unzip build-essential libssl-dev libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev libgmp-dev libevent-dev autogen automake libtool git clone https://github.com/carsenk/denarius cd denarius git checkout v3.4 git pull cd src make -f makefile.unix sudo mv ~/denarius/src/denariusd /usr/local/bin/denariusd denariusd QT sudo apt-get update -y && sudo apt-get upgrade -y sudo apt-get install -y git unzip build-essential libssl-dev libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev libevent-dev autogen automake libtool libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qt5-default git clone https://github.com/carsenk/denarius cd denarius || exit git checkout v3.4 git pull qmake "USE_QRCODE=1" "USE_UPNP=1" denarius-qt.pro make ./Denarius
  13. Basic guide on how to setup your android phone (example is using latest Android on Pixel3a) to run the daemon and/or QT wallets. There may or may not be reasons to attempt this, but why not? Install termux and hackers keyboard from play store from here to install ubuntu in termux - https://github.com/MFDGaming/ubuntu-in-termux Update termux: apt-get update && apt-get upgrade -y Install wget: apt-get install wget -y Install proot: apt-get install proot -y Install git: apt-get install git -y Go to HOME folder: cd ~ Download script: git clone https://github.com/MFDGaming/ubuntu-in-termux.git Go to script folder: cd ubuntu-in-termux Give execution permission: chmod +x ubuntu.sh Run script: ./ubuntu.sh Fix resolv.conf: cp ~/ubuntu-in-termux/resolv.conf ~/ubuntu-in-termux/ubuntu-fs/etc/ Now just start ubuntu: ./start.sh apt-get update -y apt-get upgrade -y apt-get install git wget -y apt-get -y install git unzip build-essential libssl-dev libdb++-dev apt-get -y install libboost-all-dev libqrencode-dev libminiupnpc-dev libevent-dev autogen automake libtool zlib1g-dev Compile openssl apt-get install make wget https://www.openssl.org/source/openssl-1.0.1j.tar.gz tar -xzvf openssl-1.0.1j.tar.gz cd openssl-1.0.1j ./config make depend make make install ln -sf /usr/local/ssl/bin/openssl `which openssl` cd ~ openssl version -v apt get install jq zlib1g-dev git clone https://github.com/carsenk/denarius cd denarius git checkout v3.4 git pull cd src Edit makefile.arm nano makefile.arm change this line to add boost_chrono at end and save makefile.arm LIBS = $(addprefix -L,$(BOOST_LIB_PATH) $(BDB_LIB_PATH) $(OPENSSL_LIB_PATH)) -lboost_chrono then run to compile OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib make -f makefile.arm strip denariusd cp ~/denarius/src/denariusd /usr/local/bin/denariusd QT (work in progress) apt-get -y install git unzip build-essential libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev libevent-dev autogen automake libtool libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qt5-default zlib1g-dev cd ~/denarius export QT_SELECT=qt5 qmake -v qmake "USE_NATIVETOR=-" "USE_UPNP=1" "USE_QRCODE=1" LIBS=-lboost_chrono OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib denarius-qt.pro make
  14. On the VPS side you can use an onion address to run multiple D FortunaStakes on a single machine. All you really need is enough ram and hard drive space to run each daemon wallet (denariusd). install TOR (ubuntu, raspbian, etc) sudo apt-get install tor or install from source list https://2019.www.torproject.org/docs/debian.html.en (ubuntu 16.04 xenial example below) You need to add the following entries to /etc/apt/sources.list or a new file in /etc/apt/sources.list.d/: deb https://deb.torproject.org/torproject.org xenial main deb-src https://deb.torproject.org/torproject.org xenial main Then add the gpg key used to sign the packages by running the following commands at your command prompt: # curl https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --import # gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add - We provide a Debian package to help you keep our signing key current. It is recommended you use it. Install it with the following commands: # apt update # apt install tor deb.torproject.org-keyring edit to start adding onion addresses sudo nano /etc/tor/torrc HiddenServiceDir /var/lib/tor/hidden_service01/ HiddenServiceVersion 2 HiddenServicePort 33369 127.0.0.1:33369 HiddenServicePort 9999 127.0.0.1:9999 HiddenServiceDir /var/lib/tor/hidden_service02/ HiddenServiceVersion 2 HiddenServicePort 33369 127.0.0.1:33369 HiddenServicePort 9999 127.0.0.1:9999 restart service to pick the changes up sudo service tor restart show onion address sudo cat /var/lib/tor/hidden_service01/hostname sudo cat /var/lib/tor/hidden_service02/hostname Basically you can create multiple ~./denarius folders to store chaindata like this for 2 FS's on a single VPS. mkdir ~/D mkdir ~/D/FS01 mkdir ~/D/FS02 denariusd -datadir=/home/username/D/FS01 denariusd -datadir=/home/username/D/FS02 Sample denarius.conf rpcuser=denariusrpc rpcpassword=somestrongpassword rpcallowip=127.0.0.1 daemon=1 port=9999 fortunastake=1 listen=1 externalip=youronionaddress.onion fortunastakeaddr=youronionaddress.onion:9999 fortunastakeprivkey=yourfortunastakegenkey tor=127.0.0.1:9050 bind=127.0.0.1:33301 rpcport=32301 for each FS you add change the last number of bind and rpcport, so 1 could become 2 and so and so on. Separate denarius.conf in each ~/D/FS01 ~/D/FS02 etc. folder on your QT, fortunastake.conf will have youronionaddress.onion:9999 as the IP address hint: you can also connect into the TOR onion addresses as addnodes triforce.black is running on 6nw6dekrzc2s5i2w.onion
×
×
  • Create New...