Dcrstats.com - Decred Network Dashboard

Discussion in 'User Projects' started by Dyrk, Feb 23, 2016.

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

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    The last few weeks I was developing network dashboard for Decred. It's still in early stage of development, but there are already some useful data, which I want to share with you.

    See the live site here: http://dcrstats.com
    And here is github repository - your pull requests and issues are welcome.

    What was developed so far:

    1. Decred price monitoring (BITREX + BTC-E for conversion from btc to usd)
    2. Common network stats, such as PoS Difficulty, Poolsize, Mempool size, Average mempool fees, etc.
    3. Some hints for PoS miners based on the last ticket price, mempool size and max/average fees.
    4. Some charts. Everybody loves charts.

    What is planed for development in the next few weeks:

    1. Network hashrate distribution charts (as start point it will be only public data from the pools)
    2. Hints for traders (based on the prices and big orders in Open Books on exchanges)
    3. More charts: possibility to switch between Day, Week, Month, All time.
    4. (Maybe) Simple sidebar-hidden chat
    5. (Maybe) FAQ - so far in the hundred threads on the forum we found many "undocumented features" :) I mean some important network parameters, which is not yet described anywhere except dcrd source code. I'm not sure that dcrstats is a good platform to shed more light on decred software, probably it's better to choose one forum thread or wiki, but anyway someone should do this.
    6. (Maybe) Redesign
    7. Performance improvements: separate backend logic part (cron jobs) and express.js part to 2 different applications. Then it will be possible to run webapp in cluster mode (with PM2);

    Well, please ask me for some cool features that would be useful to have on the network dashboard, I will be happy to develop them.

    PS: right now project hosted on the cheapest 1$ vps, so maybe you will see some server 500 error, if many of you want to use it, so don't be afraid. However, I think that Node.js is fast enough to handle plenty of us.
     
    goofoff, zero, mikegi and 23 others like this.
  2. Neurosploit

    Neurosploit New Member

    Jan 19, 2016
    36
    13
    Male
    .NET Software Engineer
    Amsterdam
    Looks great!
     
    Dyrk likes this.
  3. Kandiru

    Kandiru Member

    Feb 21, 2016
    207
    87
    This is really good, well done :)
     
    Dyrk likes this.
  4. tacotime

    tacotime Hero Member

    Dec 7, 2015
    410
    1,133
    @Dyrk, you will pleased to know a request for proposal (RFP) is coming out today for exactly something like this. Except, it's a port of eth-netstats. Might be worthwhile for you and others interested in this kind of work to put in proposals for that. Very cool to see this and it makes me excited knowing there are Node.js developers around!
     
    Dyrk likes this.
  5. Freemind

    Freemind Member
    Translator (Español)

    Jan 17, 2016
    143
    89
    Male
    Dyrk likes this.
  6. Emilio Mann

    Emilio Mann Full Member
    Advocate (Facebook)

    Jan 9, 2016
    188
    162
    Male
    Pretty cool! Congrats Dyrk!
     
    Dyrk likes this.
  7. rohit pawar

    rohit pawar Member
    Advocate (Reddit)

    Dec 26, 2015
    166
    87
    Male
    India
    Great Work @Dyrk :thumpsup
     
    Dyrk likes this.
  8. chappjc

    chappjc Full Member
    Developer Pool Operator (PoS)

    This is excellent, Dyrk. Consider this bookmarked. It looks perfect on my phone too!
     
    Dyrk likes this.
  9. adam2312

    adam2312 Jr. Member

    Jan 11, 2016
    118
    43
    Male
    This is very useful, I've been referencing it throughout the day. Can't think of anything other than some of the 7 you mentioned to add.

    Even if you port the eth dashboard under RFP3, which is beautiful, futuristic and great for the desktop, I hope you'll still tinker with this one. It's super clean and simple.
     
    Dyrk likes this.
  10. CStewart

    CStewart New Member
    Advocate (Twitter)

    Great work. you should add coin supply as well.
     
    Dyrk likes this.
  11. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    #11 Dyrk, Feb 24, 2016
    Last edited: Feb 24, 2016
    Thanks everyone for the feedback! :)

    Today I've deployed 2 new experimental features:
    http://dcrstats.com/

    1. "Voters per block" chart:
    In total there were 4250 votes casted; but 342 votes were missed or not included in blocks.
    - 69.1% (or 587 blocks) have 5 votes
    - 21.6% (or 184 blocks) have 4 votes
    - 9.3% (or 79 blocks) have only 3 votes

    This means that PoW miners already lost ~ 1280 DCR and PoS miners lost ~ 636 DCR of reward, if my math is correct.

    2. "Decred supply" chart.
    Here I haven't yet considered difference between "yes" / "no" votes, so this data is not enough correct (only percentage seems to be ok). But anyway you can already imagine how mining process is going.

    What is in development and will be deployed this week:
    1. Ratio of "yes" to "no" votes. (I want to see it so much, but it is not so easy, because I need to parse all SStx transactions)
    2. Сountdown to next PoS difficulty adjustment (that's one should be easy to do, but for sure super useful for PoS-miners)
    3. Current block subsidy + countdown to next subsidy adjustment.
    4. Bug fixes + full&mobile versions UI fixes
     
  12. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    Dyrk likes this.
  13. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    #13 Dyrk, Feb 25, 2016
    Last edited: Feb 25, 2016
    Thank you ;)

    As for two bottom charts, you are right. They showing daily average values (poolsize may vary in +- 3000 tickets within 24 hours).
    The same is for ticket price, when it has been just adjusted the average value will start rising next 24 hours.

    These 2 charts are "all time" charts, they will become more interesting after at least 2-6 months. But for sure I will add also daily "realtime" charts.
     
    sambiohazard likes this.
  14. drunkenmugsy

    drunkenmugsy Sr. Member
    Advocate (Reddit)

    Dec 28, 2015
    405
    218
    Male
    I think this needs to be a point in time plot at a specific amount for it to be accurate. Averaging this out over time will change it over time and will give false info.
     
  15. Kandiru

    Kandiru Member

    Feb 21, 2016
    207
    87
    One thing you could add is the total value of locked DCR. It would involve adding up the difficulty of all tickets still in the pool. That would involve keeping track of each member of the pool and it's difficulty cost separately though, which might not be worth the effort!
     
  16. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    I made few changes:
    1. DCR price in USD chart added
    2. "PoS poolsize" & "PoS difficulty" charts temporarily removed. In current realization they seems to be useless. Need to rethink it.
    3. Current block reward, estimated time to next block reward & PoS-price adjustments added.
    4. Migrated to https
    5. Bugs fixed
     
    tacotime and sambiohazard like this.
  17. Kandiru

    Kandiru Member

    Feb 21, 2016
    207
    87
    I quite liked the PoS poolsize and PoS difficulty charts myself :) Useful to look at to see if the poolsize is levelling off at the target size or not.
     
    Dyrk likes this.
  18. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    Yeah, I'm going to add them back soon.
    I just worry that page became quite big, so I think what I can remove or move somewhere else.
    Maybe it's time to add Tabs "Common", "PoS", "PoW" to separate some data.

    What I'm going to add:
    1. Ratio of "yes" to "no" votes chart (I hope it's possible to parse all votes from 40K pool, it's not just interesting to know, but then we can predict decred supply for next 30 - 150 days)
    2. Network hashrate distribution charts
    3. PoW-Difficulty chart, PoS-price chart, PoS-poolsize chart

    As you can see there are at least 5 more charts and tables that I want to deliver to dashboard. My UI skills sucks, I'm wasting so much time for mobile version optimization, so I just afraid to make this page even bigger.

    Right now I stuck on PoS price predictions:
    https://github.com/Dyrk/decred-dashboard/issues/5
    Good opportunity to start learning Go-lang
     
    tacotime and sambiohazard like this.
  19. Dyrk

    Dyrk Sr. Member
    Developer

    Jan 7, 2016
    518
    376
    Male
    Wonderland
    @Kandiru well, just for you I optimized PoS-poolsize and PoS-difficulty charts, and they now deployed back.
    From PoS-difficulty chart I removed interval of 8-22 FEB, when price was always 2. Now it will display only those days, when sbits was adjusted (actually it happens each ~ 12 hours). Anyway now this chart more useful.
    As for PoS-poolsize chart, the only change is that now it displays maximum daily poolsize (before it was daily average), so I still don't like it, but now it less confusing.
     
    tacotime and Kandiru like this.
  20. ceejep

    ceejep Sr. Member
    Developer

    Dec 14, 2015
    192
    220
    Nice work. Estimation of the next difficulty requires you to create a "hotwired" version of the difficulty algorithm. It should pretend that the current last segment of n blocks extending to the last difficulty adjustment point is actually a full 144 blocks by using targets that are for n blocks rather than 144 blocks.

    It's TODO along with RPC calls for it. You are welcome to raise an issue on GitHub, or submit a PR yourself. Adding the RPC itself is a little complicated because it needs to be routed through the blockManager for safety.
     

Share This Page