Feedback Public Testnet Evaluation

Discussion in 'Technical Development' started by tacotime, Jan 6, 2016.

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

    ClokworkGremlin Sr. Member

    Jan 10, 2016
    535
    381
    Male
    Whatever I want.
    #61 ClokworkGremlin, Jan 28, 2016
    Last edited: Jan 28, 2016
    Question! Does anybody have the testnet binaries running on a Raspberry Pi yet? Because if not, I may have a bug to report.
    [edit]Nevermind, up and running.[/edit]

    Also just an FYI, setting up a full node on a Pi will take much longer than on more conventional hardware. Had a Linux liveboot that caught up to block 1900 in about 5 minutes, the Pi is at block 900 after closer to 15. Looking at 10-100x the time that my laptop running a 2nd-gen i5 took.
     
  2. David

    David Sr. Member

    Jan 22, 2016
    364
    207
    Male
    USA
    Question to the devs...

    Are you guys getting an estimate from the statistics of testnet for the initial difficuly that mainnet will start out with? Or will mainnet be starting with an already determined difficulty value?
     
  3. ClokworkGremlin

    ClokworkGremlin Sr. Member

    Jan 10, 2016
    535
    381
    Male
    Whatever I want.
    (This is as much to remind me as to notify people) So I have dcrd running on my Raspberry Pi, and a script to start up dcrwallet on my main computer to connect to it, which I can then use as a pipe for all dcrctl commands. davecgh asked me to try to put together a tutorial for that(it's... actually not hard once you get everything figured out), so I'll try to do that once I have all the commands mapped out.
     
  4. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    Thanks. I agree that it's really not that difficult once you understand how the pieces fit together, but a guide would be extremely helpful for those who aren't used to CLI and/or configuring TLS.
     
  5. HeapsIoN

    HeapsIoN New Member
    Advocate (Facebook)

    Dec 28, 2015
    45
    4
    Male
    sambiohazard likes this.
  6. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
  7. HeapsIoN

    HeapsIoN New Member
    Advocate (Facebook)

    Dec 28, 2015
    45
    4
    Male
    Easy enough lol.. same as the rest of the internet!
    @davecgh swear I tried it and it didn't work the first time!
     
  8. ClokworkGremlin

    ClokworkGremlin Sr. Member

    Jan 10, 2016
    535
    381
    Male
    Whatever I want.
    @HeapsIoN I've found it can be finnicky, especially with people whose names include whitespace.

    [edit]By the way, if you can track down someone's user number, you can hack it a bit using BBcode. Example: Hello, Dave.
     
  9. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    Yep. You can type @ followed by the name and then go to more options and preview so the link show up, then mouse over it to find the member id. From there, you can use the user tag in bbcode to say things like I'm sorry Clockwork, but I'm afraid I can't do that!
     
    ClokworkGremlin likes this.
  10. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
  11. HeapsIoN

    HeapsIoN New Member
    Advocate (Facebook)

    Dec 28, 2015
    45
    4
    Male
    is someone able to shed some light on the circled?

    I understand the time, date, hash speed, and my user :p

    but the rest?
    A: R: WU: ST: SS: NB: LW: GF: etc?
     

    Attached Files:

  12. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    HeapsIoN likes this.
  13. HeapsIoN

    HeapsIoN New Member
    Advocate (Facebook)

    Dec 28, 2015
    45
    4
    Male
    Could someone please double check I'm doing this right?

    White mining

    Blue I have daemon running, used:
    dcrd --testnet -u heapsion -P mypassword /notls --miningaddr=TskMSZxZHLf4Lx6c3UumsUSqTA4a6oJraNC

    Red I started my wallet, used:
    dcrwallet -u walletuser -P walletpass --dcrdusername=heapsion --dcrdpassword=mypassword --noclienttls --noservertls

    Yellow trying to get my balance. But being rejected and/or 401'd. used:
    dcrctl --testnet -u heapsion -P mypassword --wallet getbalance /notls /noservertls
     

    Attached Files:

  14. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    @HeapsIoN: You need to use the wallet RPC username/password. From your screenshot I can see it's walletuser and walletpass. Given that, the following should work:

    dcrctl --testnet --wallet --notls -u walletuser -P walletpass getbalance

    PS. Your real password is in the window title on the left too, so you probably want to change it!
    PPS. In your dcrd command, no need to mix command switch styles. You can use --notls instead of /notls if you want.
     
  15. HeapsIoN

    HeapsIoN New Member
    Advocate (Facebook)

    Dec 28, 2015
    45
    4
    Male
    Ugh knew if I do it in a hurry I'd miss somewhere. Is there an easy command for this?
     
  16. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    It's only for the RPC server. So you can Just restart dcrd, dcrwallet, and cgminer updating the passwords accordingly.

    EDIT:

    Keep in mind that cgminer and dcrwallet both talk to the RPC server started by dcrd. dcrctl (with the --wallet flag) talks the RPC server started by dcrwallet.

    Also, this is why I suggest using config files. You can create %LOCALAPPDATA%\Dcrd\dcrd.conf and %LOCALAPPDATA%\Dcrwallet\dcrwallet.conf, and %LOCALAPPDATA%\Dcrctl\dcrctl.conf with all the options. That way you don't have to type them or have them show up in the window title.

    The config file supports all of the same options using the long option name.

    i.e for dcrd you could create %LOCALAPPDATA%\Dcrd\dcrd.conf with the following:

    Code:
    rpcuser=heapsion
    rpcpass=mypassword
    testnet=1
    notls=1
    miningaddr=TskMSZxZHLf4Lx6c3UumsUSqTA4a6oJraNC
    
    Then all you have to do is type:

    dcrd

    Just be aware that if you do this, you'll need to modify it for mainnet later of course.
     
    HeapsIoN likes this.
  17. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    ok guys i purchased a ticket yesterday. Its still shows up with "gettickets" command. How can I see if i am voting on blocks or not. Also is there anyway to manually vote? Can i cancel my tickets or how can i get my funds back if the ticket is not voting. Thanks :)
     
    jy-p likes this.
  18. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    I have seen a blockchain reorganization many times since yesterday. Some times its just one block and no reorganization happens but i have also seen some 2-3 block long reorganizations several times. Why is this happening? Should we expect this to happen on mainnet as well or it is just due to low staking & mining rates on testnet?

    Also, I tried sending 10 DCR to someone and wallets says

    Code:
    14:39:49 2016-01-29 [INF] TMGR: Inserting unconfirmed transaction f8ffa009d4e961
    8c5250288718c8ce342bd8859a6d7c553b6c60acb009265136
    14:39:49 2016-01-29 [INF] DCRW: Successfully sent transaction f8ffa009d4e9618c52
    50288718c8ce342bd8859a6d7c553b6c60acb009265136
    but when i gettransaction <txid>, i get this

    Code:
    {
      "amount": 0,
      "fee": 23.99999,
      "confirmations": 0,
      "blockhash": "",
      "blockindex": 0,
      "blocktime": 0,
      "txid": "f8ffa009d4e9618c5250288718c8ce342bd8859a6d7c553b6c60acb009265136",
      "walletconflicts": [],
      "time": 1454058589,
      "timereceived": 1454058589,
      "details": [
        {
          "account": "",
          "amount": -12,
          "category": "send",
          "fee": 23.99999,
          "vout": 0
        }
      ],
      "hex": "01000000010aa15dd701267703ae98471152158dbe3b4caa5a56908f07c2302889dc76
    24a00200000000ffffffff0218beeb0b0000000000001976a9149f82e00a007b6e3790df98e7b93d
    699109b8e49e88ac00ca9a3b0000000000001976a914d090e99c0bc3e70ec94f0b8d84b412a4a2f9
    f09588ac000000000000000001ffffffffffffffff00000000ffffffff6b483045022100e8ee31d9
    3d29b0e30c46f0aa9cea6162a803781e466f9e0db3f307fa62e0eb6902207048e36d6178bfb1c98c
    e16c8681d0308e56540fbdbccd0e571c215b757d227e0121026d1fcb6ad6def32e696bcfa7c6862f
    a8169d3473dfd13f3ce424e2c59e973644"
    }
    It shows no confs or blockhash and why is fee 23.99999 and amount -12 when i sent 10 DCR. My balance is reduced by 12 as well.

    Please explain in detail what is happening as i dont know how to interpret data. If i can get it then i will write a guide on understanding this data.
     
    jy-p likes this.
  19. .m.

    .m. New Member

    Jan 23, 2016
    55
    10
    I have followed the guide, but was unlucky at first but then I spotted my spelling error. Linux Fedora 23 x64, selinux disabled, works fine.

    ./dcrd --testnet -u user -P pass --notls 2>&1 | tee dcrd.out
    ./dcrwallet --create
    ./dcrwallet --debuglevel=trace --username=user --password=pass --dcrdusername=user --dcrdpassword=pass --noclienttls --noservertls 2>&1 | tee dcrwallet.out
    ./dcrctl --testnet -u user -P pass --wallet getnewaddress --notls
    TsXPssZQ6f3q6muhvMPN9yojcoa8qznUPhK

    .... mining info is coming soon
    thanks a lot for this great piece of technology !
     
  20. jy-p

    jy-p Sr. Member
    Organizer

    Jan 2, 2016
    133
    340
    Male
    After your ticket has matured, it is eligible for selection to vote on blocks. This typically requires waiting a while because the process for ticket selection is pseudorandom and only 5 tickets vote on each block. The current ticket poolsize is 4,218 tickets (from getblock on latest block), so you have a ~1/800 chance your ticket will b3 called on any given block.

    When you vote your ticket, you will see a message similar to the following in your dcrwallet console output
    Code:
    08:13:03 2016-01-29 [INF] WLLT: Voted on block 000000000033344d40e90cfde4d393608ffd2fd3e55e3a1f2e125076a44a5108 (height 2487)
    using ticket 9664db0e30edfdb019d6caf346b7dccd07b3dd1a6ac986714e779b39a1c8be9a (vote hash: 
    9fbf10288fba50d5b1191ac8d05e2cbe0cb0413bdbc54ebe0ca7137937ecae1a
    Assuming this block in which you voted does not get reorganized out, you will receive your reward for voting and your locked coins will be unlocked after a short period.
     
    sambiohazard and Dyrk like this.

Share This Page