Dd-14 V0.2.0 (07/25/2016)

Discussion in 'Development Dispatches' started by moo1337, Jul 25, 2016.

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

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Progress on staking, should be done soon.
     

    Attached Files:

    • 1.png
      1.png
      File size:
      69 KB
      Views:
      17
  2. chappjc

    chappjc Full Member
    Developer Pool Operator (PoS)

    I'd suggest a pool list/presets dialog or tab that can be used to auto-fill the relevant fields. This would obviously make pool use easier in general, but also it would make it reasonable to spread tickets around between pools, and avoid errors with mismatching addresses/fees.

    Another capability that might be good if the above happened is a fee supplement/donation percent that would increase pool fees above the required minimum.
     
  3. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    Any way to reduce the time taken for dcrd to sync from the beginning to the latest block?

    It is running at 20blocks every 10secs. How to fasten it?
     
  4. chappjc

    chappjc Full Member
    Developer Pool Operator (PoS)

    @Ayush It's a major TODO for the developers. But a solution I use is to keep a zipped copy of the mainnet/data folder with the block chain synced up to a point shared online. When making a new dcrd setup, I just download it and start from there.
     
    Ayush likes this.
  5. girino

    girino New Member

    Mar 31, 2016
    12
    18
    Male
    What if the files are corrupted? DCRD doesn't check that, i suppose. What happens then?
     
  6. chappjc

    chappjc Full Member
    Developer Pool Operator (PoS)

    Well, why would they be corrupted? If I myself zip them, and the zip integrity holds...
     
  7. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    If the devs get time they could implement ur idea. And possibly in the future dcrd would download the zip on its own and sync to latest block in a jiffy.
     
  8. chappjc

    chappjc Full Member
    Developer Pool Operator (PoS)

    In Bitcoin there is talk (or maybe completed actions) about essentially clipping old transactions involving only used outputs, or something along those lines, those reducing the burden of syncing the blockchain. I'm no blockchain expect, so I definitely explained that wrong and I don't know if it applies to Decred.

    Regarding a raw download as a real a solution, I'm quite sure that's out if the question for a variety of reasons.
     
  9. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    There are several things that can be done and are planned in regards to speeding up the initial sync.

    For one, there is current work underway to make use of my major overhaul of the database and blockchain package from the upstream btcd which will make a rather large difference once it is finished being integrated into dcrd.

    After that, the plan is to convert the ticket database to use the new much faster database along with the atomic transactions it provides in order to completely avoid the need for the whole ticket sync/resync on restart that is required with the code today due to it being stored as a separate entity that is gob-encoded.

    Another area that will ultimately make its way into Decred after it is completed and deployed upstream is multi-sync which will provide a more robust and faster download of the data itself along with opening the door for more parallel processing and simultaneous usage of CPU and storage.

    From a more theoretical standpoint on a longer time scale, there are also many, many more things that can be done. For a few examples of some of these possibilities, there are opportunities such as implementing standard and stake utxo caching, transmission of compressed and/or partial blocks, rolling checkpoints, and utxoset commitments with fraud proofs.

    I should also note that all of these aforementioned things (and several others) can be done without even needing to change consensus rules. What's really neat about the underlying Decred tech though is it allows the consensus rules to be changed via majority community consensus (PoS votes), so that opens the door for significantly more advanced scalability possibilities that would not be possible without the ability to seamlessly hard fork.
     
    chappjc and Ayush like this.
  10. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    Transactions might be corrupted. Actually, it's one of the main reasons why I didn't release the cross-platform GUI wallet yet.
    There is absolutely no way for this "rebuild from seed" stuff in GUI wallets but I don't know other solutions.

    The first transaction ("pending") actually was sent 11 days ago and was successfully mined. But dcrwallet for some reason doesn't know about this. The same problem is with expired in the mempool tickets. Sometimes they are cached and the only solution is resync from blockchain.

    [​IMG]
     
  11. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    I was using the installer and I ran ./dcrd and had it sync to the latest block, then when I tried to run ./dcrwallet with my usual -u xxx -P xxx --walletpass xxx --dcrdusername=......

    I ended up with
    RPCS: RPC authentication failure from 127.0.0.1:37062

    shown in dcrd. What's the problem? How to fix this?
     
  12. chappjc

    chappjc Full Member
    Developer Pool Operator (PoS)

    #32 chappjc, Aug 5, 2016
    Last edited: Aug 5, 2016
    We're talking about the blockchain data here. Not the wallet.db. I'm absolutely not advising to zip and upload that.

    What do you mean by the transactions might be corrupted? Are you saying that dcrd does not work properly (e.g. non-deterministically) when processing the blocks? As long as you close down dcrd gracefully, the data in blocks_leveldb and ticketdb.gob is fine. The wallet is another story, I acknowledge, as it has been very sensitive and prone to breakage.
     
    jy-p likes this.
  13. chappjc

    chappjc Full Member
    Developer Pool Operator (PoS)

    dcrd is apparently expecting different credentials. check dcrd.conf or the command line used for dcrd.
     
  14. chappjc

    chappjc Full Member
    Developer Pool Operator (PoS)

    Is there a github issue for this?
    But I don't see how mempool relates to blockchain corruption. If you close dcrd, that clears out your mempool...
     
  15. Nimrod

    Nimrod New Member

    Mar 4, 2016
    102
    18
    Male
    #35 Nimrod, Aug 9, 2016
    Last edited: Aug 9, 2016
    Kind of an issue: Dcrinstall v0.2.0 crashes on install on 32-bit Windows 7.
    Blank command window hangs there for 10 seconds and closes. Nothing apparently happens.
    (Upgrade still possible by manually replacing the binaries.)

    EDIT: Please ignore. It works fine! User error.
     
    jy-p likes this.
  16. jy-p

    jy-p Sr. Member
    Organizer

    Jan 2, 2016
    133
    340
    Male
    Thanks for the report, Nimrod. It would be ideal if you could report these issues in their corresponding GitHub repo:

    https://github.com/decred/paymetheus/issues
     
  17. moo1337

    moo1337 Moderator

    Jul 25, 2016
    80
    121
    Male
    Texas
    @Nimrod, it sounds like it actually may have worked. By default, dcrinstall does not have any output. Have a look at %HOMEPATH%\decred\dcrinstaller.log and see what it did. Chances are the install worked and that all the relevant binaries are also in %HOMEPATH%\decred\.

    If that is not the case please write this issue up in github with a detailed description on how you ran it. It would be helpful if you could provide the log file as well.
     
    jy-p likes this.
  18. Nimrod

    Nimrod New Member

    Mar 4, 2016
    102
    18
    Male
    Yes! It's working. You are correct. I was expecting some kind of response.
     
  19. Ayush

    Ayush Full Member
    Advocate (Facebook)

    Jan 9, 2016
    512
    100
    Male
    .
    .
    I have 65 decred unlocked.
    In my "default" account. But when I try to buy tickets it comes as insufficient funds available to construct transaction. Y might have this happened?
    I even tried consolidating my wallet. But still same result.
    Any help please.
     
  20. moo1337

    moo1337 Moderator

    Jul 25, 2016
    80
    121
    Male
    Texas
    Your report does not contain any information to help debug this. I suggest starting a github issue in the appropriate repo so that we can get this resolved.

    Things to add to the report: version of software, non-default settings, commands run etc.
     

Share This Page