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. ig0tik3d

    ig0tik3d New Member

    Jan 23, 2016
    23
    6
    Male
    #41 ig0tik3d, Jan 28, 2016
    Last edited: Jan 28, 2016
    C:\Users\ADMIN\Desktop\windows-amd64>dcrctl --testnet -u user -P pass --wallet getseed /notls
    {
    "seed": "dropper amusement Dupont borderline sailboat pharmacy snapshot souvenir
    ringbolt vacancy spearhead racketeer adult candidate spindle Pacific wayside
    recover newborn butterfat rebirth megaton village responsive bluebird tradition
    tempest certify stockman escapade enlist passenger crusade"
    }

    C:\Users\ADMIN\Desktop\windows-amd64>dcrctl --testnet -u user -P pass --wallet g
    etaccountaddress "default" /notls
    TsgyB97n5zQ9DXShQEpHPVERj7ZRLGZjx5c

    but when try to verify
    C:\mygo\bin>dcraddrgen.exe -verify
    Enter existing wallet seed: dropper amusement Dupont borderline sailboat pharmac
    y snapshot souvenir ringbolt vacancy spearhead racketeer adult candidate spindle
    Pacific wayside recover newborn butterfat rebirth megaton village responsive bl
    uebird tradition tempest certify stockman escapade enlist passenger crusade
    First derived address of given seed:
    DsZBnEixRmZ21gQWGBe2bGJeDYudFLSYKHy
    got other addres, what i am doing wrong?
    or how to list address?
    ps or with dcraddrgen cant verify testnet seed?
     
    Dyrk likes this.
  2. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    So now stake difficulty is:
    {
    "difficulty": 188.03667857
    }
    Is it amount in decred coins for 1 ticket? Wow, much more expensive than I expected)


    I'm interested too. Didn't find any commands in --help, how to list all addresses in the wallet and how to add existing address to the wallet (not to create).
     
  3. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    #43 sambiohazard, Jan 28, 2016
    Last edited: Jan 28, 2016
    Nope that is difficulty, just like mining difficulty, just a number. I used "getticketmaxprice" for ticket price and got 50. I am guessing that is price for 1 ticket.

    EDIT: I used getnewaddress to generate a new address
     
  4. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    No, you set that ticketmaxprice. In my case output is 200, it's a config option for wallet, maximum price for buying a ticket.
    https://wiki.decred.org/Solo_Stake_Mining - you can find description here
     
  5. ig0tik3d

    ig0tik3d New Member

    Jan 23, 2016
    23
    6
    Male
    maybe this
    dcrctl --testnet -u user -P pass --wallet getaddressesbyaccount default /notls
     
    Dyrk likes this.
  6. MiloIce

    MiloIce Jr. Member

    Jan 18, 2016
    206
    26
    Male
    >_> guys, any guide for dummies?

    I'm stuck at this :
    dcrctl --testnet -u user -P pass --wallet getnewaddress /notls , it kept saying target machine actively refused it or the client was never connected.
     
  7. Blizzy

    Blizzy Full Member

    Jan 4, 2016
    225
    109
    Male
    Is the masternode on Amazon? I have my peerblock spammed by Amazon like a ddos lol
     
  8. Bagdar13

    Bagdar13 New Member

    Jan 27, 2016
    39
    15
    Male
    Good Morning,

    If its a "401" error likely you have put a user-name or password in wrong, check for capital letters.
    If its a "malformed" response then its probably a tls issue.

    For debugging to rule that out run with tls (you wont be able to mine but you should be able to perform that step). Can you post the full error?

    Could you post all 4 of the commands you used to get to that point?
     
  9. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    I tried to set fee to 0 (by default it seems to be 0.00001) with this command:
    ./dcrctl --testnet -u user -P pass --wallet settxfee 0 --notls

    And when I tried to send coins, I got this error:
    TX rejected: transaction XXX has insufficient priority (3.846153846153846e+06 <= 5.76e+07)

    Is it mean that transfers without fee are not allowed? (when I set the fee back, it started to work again)
     
  10. jolan

    jolan Sr. Member
    Developer

    Dec 7, 2015
    197
    226
    Male
    Decred Team Member
    Stake price is "sbits": 188.03667857

    The price should start falling soon, it was driven up by buying them without a price limit which shouldn't be the case anymore.

    Code:
    $ dcrctl --testnet -u user -P pass --wallet getbestblock
    {
      "hash": "000000000089fdba1e23e9ac97a956ac3d988ce57c5fa98b818ffe5f988dffec",
      "height": 1862
    }
    jolan@deski5:~$ dcrctl --testnet -u user -P pass --wallet getblock 000000000089fdba1e23e9ac97a956ac3d988ce57c5fa98b818ffe5f988dffec
    {
      "hash": "000000000089fdba1e23e9ac97a956ac3d988ce57c5fa98b818ffe5f988dffec",
      "confirmations": 1,
      "size": 1479,
      "height": 1862,
      "version": 0,
      "merkleroot": "28d592bb24b443c466535d749415328cab401bd95300b5d63c86273e46183918",
      "stakeroot": "fb8472b9aad47a72db36ec7ced23c8d4227a947a4d0d421758211d5e1b24cb7f",
      "tx": [
        "b6414791f11c8b0001b77f205e1675c05cdc1b7fd068b4592df016683cb7c9db"
      ],
      "stx": [
        "882c44a67c76ef6d5c3c0110022c392d49c427f6b57b53be9e522c52a777ad6b",
        "976bcf31bd9542045577ec1a0e8cf4f44aff85f0c991ca47d84bbab382bb76d0",
        "a8113d41033b1a22b4d96b70ce78bc3f4f29d0a31515533ece0614b8553fb445"
      ],
      "time": 1453987233,
      "nonce": 1822932198,
      "votebits": 1,
      "finalstate": "0da1106a2b7e",
      "voters": 3,
      "freshstake": 0,
      "revocations": 0,
      "poolsize": 8031,
      "bits": "1c00c721",
      "sbits": 188.03667857,
      "difficulty": 84251.75588991,
      "extradata": "000000000000000000000000000000000000000000000000000000000000000000000000",
      "previousblockhash": "00000000006ffbe95385f26ee3bbc1defdfe008ba3641834c053296fbb2cd273"
    }
    
     
    chappjc, eshriek, ZomaX and 1 other person like this.
  11. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    So was this block declined (since only 3 voters, not 5)?

    And this is coins transfer, right?
    "tx": [
    "b6414791f11c8b0001b77f205e1675c05cdc1b7fd068b4592df016683cb7c9db"
    ]
     
  12. Jamie Keefer

    Jamie Keefer New Member
    Advocate (Twitter)

    Jan 16, 2016
    69
    12
    Male
    Thanks David im up and running! This post needs to be stickied!! :D
     
  13. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    sbits is stuck at same amount. People, get your ticket price bids lower. I want to test staking! Mine is at 20
     
  14. techbytes

    techbytes New Member

    Jan 17, 2016
    13
    2
    Male
    Did you use --noclienttls when running dcrwallet.exe? Mine wouldn't connect until I added that flag.

    dcrwallet.exe --testnet -u xxx -P xxx --noclienttls


    -tb-
     
  15. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    #56 sambiohazard, Jan 28, 2016
    Last edited: Jan 28, 2016
    woo! just submitted a sstx and balance is deducted by 200 coins. lets see what happens. What other parameters can i check using dcrctl to see how my ticket is doing? Thanks.
    EDIT: i can see my tx in current block yay!

    Ok so my balance is up from 40 to 51.96332162 but my ticket still shows up in immature tickets shown using "gettickets 1" command. Did my ticket won & i got the stake reward & i will get my coins spent on ticket after certain number of confs?
     
  16. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    Code:
    $ dcrctl -l | grep ticket
    missedtickets
    ticketsforaddress "address"
    getticketmaxprice
    gettickets includeimmature
    notifynewtickets
    notifyspentandmissedtickets
    notifywinningtickets
    purchaseticket "fromaccount" spendlimit (minconf=1 "ticketaddress" "comment")
    sendtossgen "fromaccount" "tickethash" "blockhash" height votebits ("comment")
    sendtossrtx "fromaccount" "tickethash" ("comment")
    setticketmaxprice max
    
     
  17. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    What does those notify commands do? i ran them but it returned nothing. Also i am on windows so i have no grapes :p
     
  18. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    I suspect they're to register for websocket notifications. Typically when a longer lived process connects to the wallet, they do so via a persistent websocket connect. The notify* commands allow the client to register to receive asynchronous notifications about those events.

    It looks like a bug that they're being listed as available for dcrctl. I bet whoever added them didn't add them to the right file so they aren't marked as websocket only properly. Since dcrctl doesn't use websockets, they don't apply there.
     
    sambiohazard likes this.
  19. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    Ok so my balance is up from 40 to 51.96332162 but my ticket still shows up in mature tickets shown using "gettickets 0" command. Did my ticket won & i got the stake reward & i will get my coins spent on ticket after certain number of confs?
     

Share This Page