Jump to content

Search the Community

Showing results for tags 'fortunastake'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • Announcements
  • Denarius Discussions
    • General Discussion
    • Tutorials & Help
    • Marketing & PR
    • Development
    • Mining & Staking
    • Trading & Exchanges
    • Marketplace
    • FPGA Forums
  • Other Discussions
    • The Lounge
    • Cryptocurrencies

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 4 results

  1. 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
  2. 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.
  3. 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
  4. FortunaStake Setup Guide ... This will take 500 confirms before being able to start, so do the send first, then read through the guide. Send exactly 5000 D to an address and give that address a label like FS01. Script for VPS Portion Located Here This will pull master branch and compile the latest wallet. And add a cronjob to restart wallet every hour to make sure things stay in sync. https://github.com/buzzkillb/d-fortunastake QT Wallet After sending 5000 D to a labelled address, we need the following; transaction hash and index of the 5000 send, fortunastake private key, and your VPS IP address. FS01 VPSIPADDRESS:9999 FORTUNASTAKEPRIVKEY TRANSACTIONHASH INDEXNUMBER Sample fortunastake.conf FS01 11.11.12.13:9999 6J8tAUsVhXBgfdeewqsdghySWEQEeb4XGSC251sM7bYQgEXh7 f08d926f92cc4c65321344828f6394f41121903502459ffde4ef7aef39e6392b 0 fortunastake private key fortunastake genkey fortunastake transaction hash and id fortunastake outputs VPS of your ip should be somewhat obvious. After creating your fortunastake.conf, save and restart the QT wallet. Sample QT denarius.conf fsconflock=1 staking=1 Now that address has locked the 5000 D collateral. VPS Get a VPS from somewhere like Vultr, make note of its IP address for the above fortunastake.conf creation for the QT wallet. On the VPS Update Linux sudo apt-get update && apt-get upgrade -y Install Dependencies 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 Install Fail2Ban sudo apt install fail2ban Create Swap File sudo fallocate -l 2G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab Install Firewall sudo apt install ufw -y ufw default allow outgoing ufw default deny incoming ufw allow ssh/tcp ufw limit ssh/tcp ufw allow 33369/tcp ufw allow 9999/tcp ufw logging on ufw --force enable Compile and Install Wallet (most likely need to add swapfile below) git clone https://github.com/carsenk/denarius cd denarius git checkout master cd src make -f makefile.unix strip denariusd sudo mv ~/denarius/src/denariusd /usr/local/bin/denariusd How to compile on ubuntu 18.04 https://denariustalk.org/index.php?/topic/268-steps-to-compile-wallet-ubuntu/&do=findComment&comment=2815 Install Chaindata apt-get -y install unzip mkdir ~/.denarius cd ~/.denarius rm -rf database txleveldb smsgDB wget https://github.com/carsenk/denarius/releases/download/v3.3.7/chaindata1701122.zip unzip chaindata1701122.zip Create denarius.conf in the .denarius folder. Notice the . in the folder name. denarius.conf rpcuser=USEARANDOMNAME rpcpassword=USEARANDOMPASSWORD daemon=1 port=9999 fortunastake=1 fortunastakeprivkey=6J8tAUsVhXBgfdeewqsdghySWEQEeb4XGSC251sM7bYQgEXh7 run denariusd by typing denariusd Start Go back to your QT, go to debug console and type. fortunastake start-alias FS01 In the My Denarius Fortuna Stakes tab in your QT collateral wallet, the QT will show Registered once you start your FortunaStake and then Verified, then Online, then Active. Wait 1 complete round for rewards. 1 round is roughly how many ForTunaStakes are up, and that's how many blocks a round will last. Status Check masternode status still works for specific reasons, but fortunastake status gives info in English instead of numbers and gibberish. fortunastake status
×
×
  • Create New...