Dcrticketbuyer -- New Tool For Automatic Ticket Purchase

Discussion in 'Proof-of-stake Mining' started by ceejep, May 3, 2016.

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

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    #21 ceejep, May 23, 2016
    Last edited: May 23, 2016
    Will look into it.. Probably an issue with the JS libs. Is the data stored incorrectly in the .csv files stores in the /webui/ folder?

    edit: bug fixed on latest
     
  2. root

    root Member

    Feb 3, 2016
    381
    76
    CSV files (mainnet) are sorted low -> high.
    I tried to quickly look, but did not find the problem in webui.go neither javascript, it seems like you have the latest versions (did not try github).
    Unfortunately I have to leave now.
    I noticed in examples on their web page they use "tsv" but that really should not be a problem.
     
  3. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Using csv versus tsv shouldn't be an issue, but I found out you could load tsvs from remote hosts but not csvs (wtf?). Spent almost 3 hours debugging that one. :p

    The issue was that dimple had to have a sort function added on the axis, with that added it and the strings converted to ints before running the sort function it works fine.
     
  4. root

    root Member

    Feb 3, 2016
    381
    76
    I wanted to test it, but cj_230516webui2 did not contain the sorting.
     
  5. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Squashed in that branch, and now merged into the latest master.
     
  6. root

    root Member

    Feb 3, 2016
    381
    76
    I have not seen any recent commits in cjepson neither decred dcrticketbuyer repo. Any update please ?
     
  7. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
  8. root

    root Member

    Feb 3, 2016
    381
    76
  9. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    root likes this.
  10. root

    root Member

    Feb 3, 2016
    381
    76
    It really seems to be working. My big compliments, I always considered Javascript a nightmare.
     
    chappjc likes this.
  11. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    @chappjc Discovered a bug in ticketfeeinfo. The median amount doesn't work correctly. For now, only the mean should be used for fees. Should be fixed on master soon.
     
  12. chappjc

    chappjc Full Member
    Developer Pool Operator (PoS)

    #32 chappjc, May 29, 2016
    Last edited: May 29, 2016
    @ceejep I think something is going wrong with the fees in general when ticket price changes. Here's where the ticket price adjustment happened:

    15:52:46 2016-05-29 [INF] DCRD: Block height 32399 connected
    15:53:06 2016-05-29 [DBG] TKBY: Mean fee for the last blocks or window period was 0.003331982727272727; this was scaled to 0.031
    ...
    15:57:48 2016-05-29 [INF] DCRD: Block height 32400 connected
    15:58:10 2016-05-29 [DBG] TKBY: Mean fee for the last blocks or window period was 0; this was scaled to 0.031

    I had my min fee set to 0.031.

    But here's whet ticketfeeinfo had to say:

    > dcrctl --wallet ticketfeeinfo
    {
    "feeinfomempool": {
    "number": 413,
    "min": 0.01010101,
    "max": 0.4054054,
    "mean": 0.08320176,
    "median": 0.16835016,
    "stddev": 0.07106043
    },
    "feeinfoblocks": null,
    "feeinfowindows": null
    }

    The fees are way higher than dcrticketbuyer indicated. Perhaps it is just because the price changed at 32399. But by 32400 the mean fee surely wasn't 0.

    I have a bunch of tickets that won't get mined. Gotta wait for expiry. :(
     
    zero likes this.
  13. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
  14. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Just a PSA: if you are running the HTTP server, please make sure you bind it to localhost in your configuration file.

    Code:
    httpsvrbind=localhost
    By default it opens on all interfaces right now. The default was changed in a pull request:

    https://github.com/decred/dcrticketbuyer/pull/3
     
    zero, drunkenmugsy and woot like this.
  15. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Fixed in this PR

    https://github.com/decred/dcrticketbuyer/pull/5
     
    chappjc, Tivra and zero like this.
  16. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    zero likes this.
  17. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
  18. Jamie Holdstock

    Jamie Holdstock Jr. Member

    Mar 30, 2016
    50
    37
    Male
    London, UK
    I noticed that the ticket price has become much more stable recently. Is this likely to be a consequence of many users switching to Dcrticketbuyer? If so - I'm surprised (and happy!) to see it have such an impact.
     
  19. karamble

    karamble Member
    Developer

    Feb 19, 2016
    57
    71
    Someone is constantly buying 7 Tix per Block and ensures the price don't drops under 20
     
    zero likes this.
  20. Jamie Holdstock

    Jamie Holdstock Jr. Member

    Mar 30, 2016
    50
    37
    Male
    London, UK
    I realised there could be another potential cause - the lauching of 7 new stake pools. These two things may be closely related if the stake pool code makes use of dcrticketbuyer...
     

Share This Page