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

    Blizzy Full Member

    Jan 4, 2016
    225
    109
    Male
    @davecgh thanks in advance my friend!

    I have some problem to pos and pow togheter.

    This is my procedure (win7):

    first window : dcrd --testnet -u xxx -P xxx --miningaddr=xxx --notls
    second window : dcrwallet -u xxx -P xxx--dcrdusername=xxx --dcrdpassword=xxx --noclienttls --noservertls

    then i open ccminer,all is good the miner work fine and , if i open a new command window i can send money an get balance.

    my problem start here.

    If i enter this command or any command starting with dcrwallet :

    dcrwallet -u xxx -P xxx --enablestakemining --balancetomaintain=20 --ticketmaxprice=50

    i got the error :

    02:34:20 2016-01-30 [INF] WLLT: Opened wallet
    02:34:20 2016-01-30 [WRN] DCRW: RPCS: Can't listen on 127.0.0.1:19110: listen tc
    p4 127.0.0.1:19110: bind: Di norma è consentito un solo utilizzo di ogni indiriz
    zo di socket (protocollo/indirizzo di rete/porta).
    02:34:20 2016-01-30 [WRN] DCRW: RPCS: Can't listen on [::1]:19110: listen tcp6 [
    ::1]:19110: bind: Di norma è consentito un solo utilizzo di ogni indirizzo di so
    cket (protocollo/indirizzo di rete/porta).
    02:34:20 2016-01-30 [ERR] DCRW: Unable to create HTTP server: no valid listen ad
    dress

    So to avoid this i have to close the window i have opened with this command:

    dcrwallet -u xxx -P xxx--dcrdusername=xxx --dcrdpassword=xxx --noclienttls --noservertls

    (in the mean time ccminer still working)

    Ok now i have closed the window and i try to do this command again:

    dcrwallet -u xxx -P xxx --enablestakemining --balancetomaintain=20 --ticketmaxprice=50

    the first error the consolle give me is a file missed called dcrd.cert in appdata>local>dcrwallet

    so i made the file with a txt and rename the ext in .cert.

    Now i try to do the procedure again i write in consolle:

    dcrwallet -u xxx -P xxx --enablestakemining --balancetomaintain=20 --ticketmaxprice=50

    C:\Users\G\Desktop\decred\windows-amd64>dcrwallet -u xxx -P xxx --enablestakemin
    ing --balancetomaintain=20 --ticketmaxprice=50
    02:39:56 2016-01-30 [INF] WLLT: Opened wallet
    02:39:56 2016-01-30 [INF] DCRW: RPCS: RPC server listening on [::1]:19110
    02:39:56 2016-01-30 [INF] DCRW: RPCS: RPC server listening on 127.0.0.1:19110
    02:41:11 2016-01-30 [WRN] DCRW: Connection to Decred RPC chain server unsuccessf
    ul -- available RPC methods will be limited
    02:41:11 2016-01-30 [ERR] WLLT: Unable to request transaction updates for winnin
    g tickets. Error: the client was never connected
    02:41:11 2016-01-30 [ERR] WLLT: Unable to request transaction updates for spent
    and missed tickets. Error: the client was never connected
    02:41:11 2016-01-30 [ERR] WLLT: Unable to request transaction updates for stake
    difficulty. Error: the client was never connected
    02:41:11 2016-01-30 [INF] WLLT: Stake mining is enabled. Votebits: 1, minimum wa
    llet balance 20
    02:42:26 2016-01-30 [WRN] DCRW: Connection to Decred RPC chain server unsuccessf
    ul -- available RPC methods will be limited
    02:42:26 2016-01-30 [ERR] WLLT: Unable to request transaction updates for winnin
    g tickets. Error: the client was never connected
    02:42:26 2016-01-30 [ERR] WLLT: Unable to request transaction updates for spent
    and missed tickets. Error: the client was never connected
    02:42:26 2016-01-30 [ERR] WLLT: Unable to request transaction updates for stake
    difficulty. Error: the client was never connected
    02:42:26 2016-01-30 [INF] WLLT: Stake mining is enabled. Votebits: 1, minimum wa
    llet balance 20

    Can you help me? :D

    I'm going to bed now is latenight!
     
  2. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    @Blizzy: Start with your working PoW setup and just add the additional 3 stake related parameters when you launch wallet.

    So:

    dcrwallet -u xxx -P xxx--dcrdusername=xxx --dcrdpassword=xxx --noclienttls --noservertls --enablestakemining --balancetomaintain=20 --ticketmaxprice=50
     
    chappjc, eshriek, David and 1 other person like this.
  3. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    Is price in whole decred or is it like bitcorn, having satoshi ?
     
  4. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    I think im running P o S but i only have 10 . so im @ 1 and 1 for settings.
     
  5. ClokworkGremlin

    ClokworkGremlin Sr. Member

    Jan 10, 2016
    535
    381
    Male
    Whatever I want.
    I paid someone 31.4159 DCR yesterday.
     
  6. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    As far as I know all amounts in and out of the RPC interface are in whole coins (DCR) as opposed to atomic units (atoms).
     
    jimmy16 likes this.
  7. ClokworkGremlin

    ClokworkGremlin Sr. Member

    Jan 10, 2016
    535
    381
    Male
    Whatever I want.
    My current balance is reported as 3.45595482. Also, staking seems to work, gettickets reports 8 hashes currently and I know I've seen some changes.
     
    jimmy16 likes this.
  8. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    How can i check if my staking is working?
     
  9. ClokworkGremlin

    ClokworkGremlin Sr. Member

    Jan 10, 2016
    535
    381
    Male
    Whatever I want.
    run dcrctl (standard login, --wallet) with the command
    Code:
    gettickets true
    to get a list of(all, including immature) staking tickets you've presently got in the pool. Barring that, if your total has gone up without you mining or receiving other transactions, then you've gotten some stake rewards.(My previous total was around 1.5 credits and 4 tickets a couple of hours ago)

    I have a tutorial I'm going to try to write tomorrow about running your chainhost on one computer and logging in with a remote wallet. I'll include setting up staking in the wallet setup. I currently have 3 console windows open on my Pi(chainhost, wallet, dcrctl console), and I can open a wallet on my Windows computer that logs into the chainhost on the Pi and relay commands through it if I want to.
     
    chappjc and jimmy16 like this.
  10. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    ok i got:
    gettickets true
    {
    "hashes": []
    }
     
  11. Jamie Keefer

    Jamie Keefer New Member
    Advocate (Twitter)

    Jan 16, 2016
    69
    12
    Male
    I recently put a pi on my network and would be interested in your config once ironed out. Tia
     
    ClokworkGremlin likes this.
  12. ClokworkGremlin

    ClokworkGremlin Sr. Member

    Jan 10, 2016
    535
    381
    Male
    Whatever I want.
    The good news is you used the right command. The bad news is you don't have any tickets yet. Did you start the wallet in staking mode? If so, how recently? It can take a couple of hours to get some tickets.
    It's super easy once you get things figured out. I just need to get the scripts put together and polished.
     
    jimmy16 likes this.
  13. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    ok , i just got it working last hour or so. but i was wondering about the tick price... is thier a way to check the market ( other PoS valus on the net work) how can we know how to set a price?

    sudo ./dcrwallet -u XXX -P XXX --enablestakemining --balancetomaintain=1.0 --ticketmaxprice=1
     
    chappjc likes this.
  14. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    $ dcrctl getbestblockhash | dcrctl getblock - 1 | grep sbits
    "sbits": 4.38092481,

    So your current max ticket price means you won't buy any tickets. You can change it with the setticketmaxprice RPC. i.e dcrctl --wallet setticketmaxprice 5
     
    chappjc, ClokworkGremlin and jimmy16 like this.
  15. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    Thanks. Im at dcrctl term
    > getbestblockhash | dcrctl getblock - 1 | grep sbits
    it just sits there no error, but no > and no info
    if i run comand @ $ ./dcrctl getbestblockhash | dcrctl getblock - 1 | grep sbits
    command not found.. and im in tree
     
  16. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    @jimmy16 You'd need to all of the flags you normally do. I have all of my settings in a config file so I don't have to type over and over.

    If you're inside the dcrctl term, you just have to do it manually.
    getbestblockhash
    <copy the result>
    getblock <hash you just copied> 1
    <look for the sbits field>
     
    jimmy16 likes this.
  17. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    OK ill start over tomorrow on config files. thank you
     
  18. jimmy16

    jimmy16 Jr. Member

    Jan 8, 2016
    143
    33
    Male
    22:10:51 2016-01-29 [INF] WLLT: Successfully sent SStx purchase transaction 7e45d01255a8fbe3ef351e04b1bf8643b0fc575cd40eb02f69229fe27fc90f9c
    ;) Think im in,
     
  19. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    Yep. I see it here as well:

    Code:
    $ dcrctl getrawtransaction 7e45d01255a8fbe3ef351e04b1bf8643b0fc575cd40eb02f69229fe27fc90f9c 1
    {
    ...
      "type": "stakesubmission",
    ...
    }
     
  20. Blizzy

    Blizzy Full Member

    Jan 4, 2016
    225
    109
    Male
    easy solution! thanks (i will update italian guide with this info)
     

Share This Page