Time For Ticket Expires

Discussion in 'Proof-of-stake Mining' started by raphaelsoares, Jul 22, 2016.

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

    raphaelsoares New Member

    Jan 30, 2016
    38
    11
    Male
  2. raphaelsoares

    raphaelsoares New Member

    Jan 30, 2016
    38
    11
    Male
    All right, put the transaction already has more than 41,000 confirmations!
     

    Attached Files:

  3. root

    root Member

    Feb 3, 2016
    381
    76
    As ceejep said, but there may be other things related.
    Running testnet, I had some tickets missed, but the missed count did not change.
    Due to all restarts etc I forgot to unlock the wallet. So after unlock and rebroadcastmissed the count missed / revoked changed, but it still is not the same. There was ERR in log something about revocation using ticket xxx rejected already have transaction.
    Probably restore from seed would help me.
     
  4. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    You can manually create, sign, and send the revocation.

    Code:
    createrawssrtx [{"txid":"your_ticket_hash","vout":n,"tree":1}]
    signrawtransaction <result_of_above>
    sendrawtransaction <result_of_above>
     
  5. raphaelsoares

    raphaelsoares New Member

    Jan 30, 2016
    38
    11
    Male

    ./dcrctl -u USER -P PASS createrawssrtx [{"txid":"abcca6a2ae51925e4d5a8ba885dd36bd1e41fc7a4ae31734be8ccd31c0aef757","vout":1,"tree":1}]

    createrawssrtx command: wrong number of params (expected between 1 and 2, received 3) (code: ErrNumParams)
    Usage:
    createrawssrtx [{"txid":"value","vout":n,"tree":n},...] (fee)


    Can you help me?
     
  6. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Almost there. Should be in quotes if not in terminal mode, and vout should be 0. Try:

    Code:
    ./dcrctl -u USER -P PASS createrawssrtx '[{"txid":"abcca6a2ae51925e4d5a8ba885dd36bd1e41fc7a4ae31734be8ccd31c0aef757","vout":0,"tree":1}]'
     
  7. raphaelsoares

    raphaelsoares New Member

    Jan 30, 2016
    38
    11
    Male

    Ok.

    Next Step:

    ./dcrctl -u USER -P PASS --wallet signrawtransaction 010000000157f7aec031cd8cbe3417e34a7afc411ebd36dd85a88b5a4d5e9251aea2a6ccab0000000001ffffffff0165fc9d230000000000001abc76a9149bac99f6503e7b3be8d6725a5ea5d8512cf3c77788ac000000000000000001ffffffffffffffff00000000ffffffff00


    Return:

    Post https://localhost:9110: EOF
     
  8. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Did wallet panic or report anything? EOF is usually returned if it crashes. Just tried creating and signing a raw revocation on testnet and it worked OK.
     
  9. Tivra

    Tivra Member
    Advocate (BitcoinTalk)

    Dec 30, 2015
    120
    60
    Europe
    I also have some tickets that are stuck more than 4 months. Can someone please guide me through this process? If I get this right, first I should list tickets to get the ticket hashes, and then manually revoke them with the command ceejep provided above?
     
  10. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    You won't need to do anything. Once (if) they expire, they will automatically be revoked and then after the coinbase maturity period (256 blocks) the original coin amount (minus whatever txfee was paid for the ticket) will be available to you again.

    However, keep in mind that the expiration period is 40960 blocks. That equates to roughly 4.7 months (closer to 5 than it is to 4).
     
    Suraj, jy-p and Tivra like this.
  11. Tivra

    Tivra Member
    Advocate (BitcoinTalk)

    Dec 30, 2015
    120
    60
    Europe
    Thank you @davecgh
    Is there a lower chance for very old tickets to be selected for voting?
    One of them I successfully voted with after 3 months.
     
  12. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    No. Buying a ticket is actually buying a ticket to 40,960 lotteries. A lottery happens each block with approximately the same level of fairness (approximately because the total number of tickets in the ticket pool from which the ticket is being selected is not constant from block to block, although it is quite stable and is exactly what the ticket price is designed to stabilize). A ticket that became live in the current block has the same probability to be selected as one that became live 40959 blocks ago.
     
    Suraj, chappjc, jy-p and 1 other person like this.

Share This Page