Is Pos Working?

Discussion in 'Tickets' started by Dyrk, Feb 9, 2016.

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

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    I don't think set fee is working. It was inserted last minute to make copay function. Both wallet and daemon need settxfee support, the former for creating transactions and the latter for the mempool.

    There are issues right now with the mempool and fees. Too low fees should be rejected by the mempool, but it appears they are not always. The priority queue should sort according to fees when mining, but this too appears to be an issue.

    https://github.com/decred/dcrd/issues/15

    We hope we can push fixes for this soon.
     
    chappjc likes this.
  2. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    #22 Dyrk, Feb 11, 2016
    Last edited: Feb 11, 2016
  3. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    I moved to other box with seed my balance is the same.
     
  4. jack.liver

    jack.liver New Member

    Feb 1, 2016
    20
    4
    Male
    someone can do an example of how to use this parameters for ticket purchase ?

    purchaseticket "fromaccount" spendlimit (minconf=1 "ticketaddress" "comment")
     
  5. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    Buy ticket from account default with price 2DCR:
    Code:
    dcrctl --wallet purchaseticket default 2
     
  6. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    It's intentional and is an integral part of the dynamic ticket price adjustment. The TicketPoolSize is the target ticket pool size and it works very similar to the target difficulty for PoW. The fact the current ticket pool size is larger than the target is what causes the ticket price to rise which will in turn will eventually cause less tickets to be purchased and result in the number of tickets in the pool reducing back towards the target. If it falls under, the price will fall to encourage more ticket sales in order to increase the number of tickets in the pool towards the target, etc.
     
    chappjc, Dyrk and drunkenmugsy like this.
  7. jack.liver

    jack.liver New Member

    Feb 1, 2016
    20
    4
    Male

    in this way you spread them on different addresses this cost 0,05 of fee when you buy a ticket and 0,05 when you reunite on a single address.


    instead in this way you can control which account purchase and which store tickets and how many you want buy in a sigle transaction, so less fee and addresses.

    purchaseticket "fromaccount" spendlimit (minconf=1 "ticketaddress" "comment")


    but i don't know minconf=1 what is or what is required for this parameter i'm actually use win 386 client.
     
  8. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    No bug, keep in mind that TicketPoolSize is the multiplier. To get the target, multiply TicketPoolSize by TicketsPerBlock, which gives you 40960 tickets for mainnet. From extensive simulation, the average time in block to redeem your ticket is the multiplier. For example, here is a histogram showing the time to redeem when TicketPoolSize=16384 and TicketsPerBlock=5. The x axis is time from maturity in blocks, while the y axis is the number of tickets. It approximates a Poisson function with lambda=1.

    The results are not entirely intuitive. If you fail to get win in the first lottery, your likelihood of winning in the remaining lotteries is slightly lower because you have less total tries left. This causes the exponential decay observed. The expiration time of 40960 blocks was chose because >99% of tickets were determined to be selected within this time frame.
     

    Attached Files:

    • 1.png
      1.png
      File size:
      5.8 KB
      Views:
      48
    jy-p and chappjc like this.
  9. Blizzy

    Blizzy Full Member

    Jan 4, 2016
    225
    109
    Male
    Today @Dyrk have learned me how to build a VPS linux server for pos mining from zero.

    I am a windows user and i i have used linux few times, but with his help everything works so perfect on Linux !! My wallet is stake mining and the system is another type of securyty compared to windows.Yesterday i have setuped and runned a pos wallet on a VPS with win 7....compared to linux..shit! :)

    I would like to write a noob guide from the impressive tutorial messages that Dyrk have sended to me today,it will be very helpful for a lot of users!

    Also i would like to thanks him in pubblic! Thanks Dyrk!
     
    Scott Briggs and Lee Sharp like this.
  10. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    Welcome to the dark side! The water is warm here. (It is from all the hate directed at us... It warms the water.) :)
     
    Reynold likes this.
  11. Scott Briggs

    Scott Briggs New Member

    Jan 10, 2016
    11
    10
    Male
    Lawyer
    Bay Area, CA
    Wow! Are these tutorial messages publicly available??

    I am a windows user, having used linux a few times as well, and would love to learn how to do this.
     
    Blizzy likes this.
  12. Reynold

    Reynold Member

    Jan 28, 2016
    198
    70
    Male
    Programmer
    Haha :D

    Most of my coins and mining pools were setup on Ubuntu until Decred came and made me use my GPU to mine since my sha256 ASIC's are useless for DCR.

    See my blog:
    Code:
    http://www.reynoldtech.com/
    http://www.reynoldtech.com/dcr-decred-the-new-crypto-currency/
    http://www.reynoldtech.com/myriadcoin-compile-from-source-on-ubuntu/
    http://www.reynoldtech.com/namecoin-compile-from-source-on-ubuntu/
    http://www.reynoldtech.com/zetacoin-compile-from-source-on-ubuntu/
    http://www.reynoldtech.com/titcoin-compile-from-source-on-ubuntu/
    http://www.reynoldtech.com/mazacoin-compile-from-source-on-ubuntu/
    http://www.reynoldtech.com/universalcurrency-compile-from-source-on-ubuntu/
    http://www.reynoldtech.com/bitcoin-core-compile-from-source-on-ubuntu/
    
    Since I started Decred with Windows, I've continued with Windows for this coin... so far.
     
  13. Blizzy

    Blizzy Full Member

    Jan 4, 2016
    225
    109
    Male

    I will write a tutorial soon (probably this weekend)

    :)
     
  14. Lucien

    Lucien New Member

    Jan 27, 2016
    28
    2
    Male
    Is there a command to see the tickets i've purchased?
     
  15. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    Yes, you can use this:
    Code:
    dcrctl --wallet gettickets 1
    The last argument can be 1 (include immature tickets) or 0 (show only mature tickets, which participate in voting)
     
    Noah, Reynold, Lucien and 1 other person like this.
  16. Lucien

    Lucien New Member

    Jan 27, 2016
    28
    2
    Male
    thx for the info, of course it works.

    Another questions if ican!
    for how long dcr are locked after a successful purchase?
    o_O
     
  17. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    Coins for each ticket locked until this ticket will cast a vote or expire.
    If I remeber well, expected expiry time is ~ 145 days ( 40960 blocks ).
    Please see this answer of @ceejep above in this thread if you want to better understand (I mean become totally lost) how poolsize and ticket expiration works:
    https://forum.decred.org/threads/is-pos-working.531/page-2#post-8980
     
  18. MarSas

    MarSas New Member

    Feb 12, 2016
    54
    14
    Male
    What happens with the tickets if the wallet is closed and then reopened? Do I just run it or is there anything more I need to do?
     
  19. drunkenmugsy

    drunkenmugsy Sr. Member
    Advocate (Reddit)

    Dec 28, 2015
    405
    218
    Male
    You can restart the wallet no issues. You *might* miss a vote in the time it takes to restart but not likely. Just make sure you unlock it again after you restart.
     
    Mklueg likes this.
  20. MarSas

    MarSas New Member

    Feb 12, 2016
    54
    14
    Male
    Great news! Thank you for your reply!
     

Share This Page