Redundant Wallet For Pos

Discussion in 'Solo Mining' started by Shadowlance, Mar 23, 2016.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. Shadowlance

    Shadowlance Full Member

    Jan 9, 2016
    220
    155
    Male
    I know some people have set up redundant wallets for PoS in case one goes down, but I haven't seen any guides. It's something I think should be part of the official docs. Would anyone mind giving a short how-to on how it's done? Just the instructions will be fine, I can pretty it up. You will be acknowledged in the docs along with all the other guide authors.
     
  2. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    U mean hot/cold wallets?
     
  3. Shadowlance

    Shadowlance Full Member

    Jan 9, 2016
    220
    155
    Male
    #3 Shadowlance, Mar 23, 2016
    Last edited: Mar 23, 2016
    I'm not sure if that's what they're called. It's a slave wallet that responds to votes if the main wallet is offline. Voting wallet redundancy basically.
     
  4. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    What u r asking for is hot and cold wallet.
     
  5. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    Hot wallet will be given voting rights but won't have any coins.
    The cold wallet will have the coins in it and can be offline.
    Hot wallet need to be connected to the net always.

    U can find more here - along with the commands --
    https://wiki.decred.org/Solo_Stake_Mining
     
  6. root

    root Member

    Feb 3, 2016
    381
    76
    There is a difference :
    (1) hot / cold - to keep your money safe
    (2) redundant / high availability solution - to ensure at least one wallet votes

    I'd say - please double check - you can setup (1) and then start many voting wallets - as long as they vote on behalf of the main(offline) wallet.
     
    David and ZomaX like this.
  7. David

    David Sr. Member

    Jan 22, 2016
    364
    207
    Male
    USA
    @Shadowlance, I have this redundant wallet setup using Amazon VPS for a Ubuntu server cli instance. I believe they also offer a Windows server platform too. I use the same wallet seed for the VPS and my main computer, but the VPS' dcrwallet.conf file is set to maintain a balance of 100000000 (maybe one day I will get there!) It stays unlocked in the cloud and responds to vote calls but it doesn't purchase tickets. The website is https://aws.amazon.com/ and I believe it's free for 1 year after signing up if you stay under certain usage limits. The usage limits are VERY generous IMO. If you login and check it out, it's the very first option on the AWS console called "EC2" (Virtual servers in the cloud). I'd suggest to check it out for yourself and try to set one up.. it's fairly easy. You can PM me or post up if you get stuck though!
     
  8. Shadowlance

    Shadowlance Full Member

    Jan 9, 2016
    220
    155
    Male
    Thanks, @David. I've set up a VPS on AWS before (minecraft server) so I know how to do that. It's the commands to set up the redundant wallet I don't know.
     
    David likes this.
  9. David

    David Sr. Member

    Jan 22, 2016
    364
    207
    Male
    USA
    Oh okay sweet! That was a fun game. Here's an example of the config files on my VPS.

    dcrd.conf:
    rpcuser=myuser
    rpcpass=mypass

    dcrwallet.conf:
    username=myuser
    password=mypass
    enablestakemining=true
    balancetomaintain=10000000
    ticketmaxprice=1

    The setup process would be:
    1) Start dcrd and let it sync all the way up to the latest block
    2) Create your wallet using your seed
    3) Start dcrwallet with the settings above and unlock it indefinitely (timeout value of 0)

    It's essentially the same as anything else, but you are not purchasing tickets. It's a bad idea to purchase tickets or create other transactions from a wallet other than your "main" wallet because the wallets will more than likely get out of sync.
     
    Shadowlance likes this.
  10. Kandiru

    Kandiru Member

    Feb 21, 2016
    207
    87
    I'll add that, if you aren't doing the hot/cold separation, you can use --reuseaddresses option on dcrwallet, which will make your ticket purchases use only 1 address, so your redundant wallets can see and vote on those tickets fine. If you don't use this, then your redundant wallets won't know about the new addresses of the new tickets you've bought, and you'll need to keep resyncing it.
     
    Shadowlance likes this.
  11. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    I want help. Can u tell me whats the use of the reuseaddress command?
    Y should a person use it?
     
  12. Kandiru

    Kandiru Member

    Feb 21, 2016
    207
    87
    It means that instead of sending the change and ticket to new addresses, they all get sent to the same address. This means of you have another wallet it'll see all the tickets, as it already knows about the address!
     
  13. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    How can I use this command in the dcrctl command to buy tickets. I want ticket address to be a different one( I use stake pool and have to use the wallet address provided by it)
     
  14. semajjames

    semajjames New Member

    Mar 26, 2016
    50
    1
    Male
    does this mean that :-
    if I start my dcrwallet with "--reuseaddresses " BEFORE I make an outgoing transaction
    then any change /returning coins will come back to the same address instead of making a new address ??

    cheers
     
  15. Kandiru

    Kandiru Member

    Feb 21, 2016
    207
    87
    For ticket purchases. I don't think it applies to anything else.
     
  16. Johnshpon3

    Johnshpon3 Member

    Dec 25, 2015
    210
    86
    Male
    Telecommunications
    Slovenia
    I included this command on the end of .bat file which starts my automatic ticket purchase. Since than I have 840 addresses and this number is not rising anymore.
     
  17. root

    root Member

    Feb 3, 2016
    381
    76
    I tried --enablestakemining --reuseaddresses (just this, not reuseaddresses=XXX)
    It seemed to work fine, but I checked after a day or so and there were new addresses added ( getaddressesbyaccount default ).
    I thought no new addresses should appear.
    I have a version 0.0.9, I did not send out any dcrs, I received some through address got by "getaccountaddress default".
    Any ideas what could happen ? I can provide 'trace' logs or investigate if you show me the direction.
     
  18. Nimrod

    Nimrod New Member

    Mar 4, 2016
    102
    18
    Male
    The simplest explanation might be that --reuseaddresses is only valid for NEW ticket purchases? So your current tickets have been voted you will get new addresses? Just a guess!
     
  19. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    i can confirm that as i used my wallet logs & block explorer to verify this. Also if i send a normal tx, i think it creates a new address for change.
     

Share This Page