Blocks Found & Transactions

Discussion in 'Proof-of-work Mining' started by BrandonReynolds, Jan 29, 2016.

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

    BrandonReynolds Jr. Member

    Dec 28, 2015
    47
    36
    Male
    Software Engineer
    All,

    I know that blocks take some time to mature and have read through the list of threads already started. However, I have an interesting issue. I found and had accepted two blocks.

    22:53:28 2016-01-28 [INF] RPCS: Block submitted via getwork accepted: 00000000001211760e49f12fa9e56765bf87981084cabf490fc5b53cba9bf42d

    and

    23:15:36 2016-01-28 [INF] RPCS: Block submitted via getwork accepted: 000000000066d1672dc4c5a001bc178e77dfbad3111b7df031ed8772a416574f
    However, roughly 13 hours later I only see a single transaction for the 2nd approved block. Nothing for the first.

    Command: dcrctl --testnet -u <USER> -P <PASS> --wallet listtransactions /notls
    [
    {
    "account": "",
    "address": "TshbZLDiVHKrEXnLoD9TmRWTKDeaog54kAc",
    "amount": 14.85148515,
    "blockhash": "000000000066d1672dc4c5a001bc178e77dfbad3111b7df031ed8772a416574f",
    "blocktime": 1454044516,
    "category": "generate",
    "confirmations": 331,
    "generated": true,
    "time": 1454044594,
    "timereceived": 1454044594,
    "txid": "d2324ac9850f78cdbcdb952f3012cb3c330e113ce7a95632a022e575b9a0f982",
    "vout": 2,
    "walletconflicts": []
    }
    ]​

    Now, I am not too terribly worried since this is testnet but just in case there is a bug I wanted to pass this along and clarify what's going on here. Has this happened to others that had accepted blocks but did not receive a block reward? Checking my wallet balance also only reflects that of the above transaction.

    Thanks!
    Brandon Reynolds
     
  2. jcv

    jcv Full Member
    Developer

    Your missing block must have gotten invalidated by the stake miners. You can use getblock and look at the vote bits to see:

    jcv@yoshi ~ $ dcrctl getblock 000000000066d1672dc4c5a001bc178e77dfbad3111b7df031ed8772a416574f | grep votebits
    "votebits": 0,
     
    BrandonReynolds likes this.
  3. BrandonReynolds

    BrandonReynolds Jr. Member

    Dec 28, 2015
    47
    36
    Male
    Software Engineer
    Thanks for the information. Why would stake miners invalidate a block? I'm still trying to fully understand the stake mining and ticket voting portion of decred.
     
  4. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    It's testnet. I'm sure people are testing!
     
    BrandonReynolds likes this.
  5. BrandonReynolds

    BrandonReynolds Jr. Member

    Dec 28, 2015
    47
    36
    Male
    Software Engineer
    Haha. Makes sense. Thanks.
     
  6. jcv

    jcv Full Member
    Developer

    Actually @BrandonReynolds in my attempt at posting quickly I wasn't 100% right. One sec and I'll update
     
  7. jcv

    jcv Full Member
    Developer

    For the block 00000000001211760e49f12fa9e56765bf87981084cabf490fc5b53cba9bf42d (the one that got invalidated) you need to look at the votebits in the nextblock to see if it was invalidated. So:

    dcrctl getblock 00000000001211760e49f12fa9e56765bf87981084cabf490fc5b53cba9bf42d | grep nextblockhash
    "nextblockhash": "000000000040095c4631a16f1a9a92c78a85fc29bb9916120e639c60594fa2c6"

    Then

    jcv@yoshi ~ $ dcrctl getblock 000000000040095c4631a16f1a9a92c78a85fc29bb9916120e639c60594fa2c6 | grep votebits
    "votebits": 0,

    Sorry for the slightly inaccurate answer.
     
    BrandonReynolds likes this.
  8. BrandonReynolds

    BrandonReynolds Jr. Member

    Dec 28, 2015
    47
    36
    Male
    Software Engineer
    Appreciate the correction. Thanks.
     

Share This Page