Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

[dashninja.pl] Dash Masternode Ninja - Free Masternode Monitoring

Discussion in 'Dash Websites' started by elbereth, Oct 22, 2014.

  1. jeffh

    jeffh Member

    Joined:
    May 8, 2017
    Messages:
    107
    Likes Received:
    45
    Trophy Points:
    78
    Great job with DashNinja, really loving what you've put together here.

    I'm doing some analysis on masternode governance and the API's exposed on DashNinja are very useful. Are there any API docs for the /api/budgets or /api/governanceproposals endpoints?

    If so, they would save me a ton of time.

    Thanks!
     
    #181 jeffh, Oct 18, 2017
    Last edited: Oct 18, 2017
    • Winner Winner x 1
  2. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    440
    Likes Received:
    466
    Trophy Points:
    133
    Dash Address:
    XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
    Hi Jeffh,

    I never took the time to document them, I will try to do it when I get some free time.
    In the meantime you can check the javascript code using them on github.
    https://github.com/elbereth/dashninja-fe/blob/master/dashninja-budgets.js
    https://github.com/elbereth/dashninja-fe/blob/master/dashninja-governance.js

    Edit : added governance api end-point info on the second post.

    Regards,
    Alex
     
    #182 elbereth, Oct 26, 2017
    Last edited: Oct 26, 2017
    • Like Like x 1
  3. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    440
    Likes Received:
    466
    Trophy Points:
    133
    Dash Address:
    XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
    Dash Ninja was down yesterday for 6 hours more or less, Explorer is still down and therefore balances shown on Dash Ninja are not updated.

    The culprit was MySQL 5.7.20 which failed and in doing so corrupted the whole database.
    I was able to recover everything but the explorer db which is now in the process of recreation (I expect this process to be like 1 week long).

    I also transitioned to MariaDB 10.2.9, which seems much more stable than MySQL 5.7.20...

    If you see anything wrong, tell me.
     
    • Like Like x 4
  4. jeffh

    jeffh Member

    Joined:
    May 8, 2017
    Messages:
    107
    Likes Received:
    45
    Trophy Points:
    78
    Thanks for getting back to me. That's actually exactly what I did after posting my question, just curious if there was anything I missed that wasn't in there.

    I'm probably only going to hit that API once or twice a day but it might be worth adding pagination to the API endpoints (the masternode info one returns a massive amount of JSON) and maybe some request liming so that someone doesn't accidentally take down your server.
     
  5. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    440
    Likes Received:
    466
    Trophy Points:
    133
    Dash Address:
    XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
    Results are cached and there is a maximum number of queries that can be treated (the server is far from this limit).
     
  6. jeffh

    jeffh Member

    Joined:
    May 8, 2017
    Messages:
    107
    Likes Received:
    45
    Trophy Points:
    78
    Good to know.
     
  7. jeffh

    jeffh Member

    Joined:
    May 8, 2017
    Messages:
    107
    Likes Received:
    45
    Trophy Points:
    78
    Looks like the sentinel bug might have affected DashNinja as well. Do you have an ETA for when the site will be up and running again?
     
  8. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    440
    Likes Received:
    466
    Trophy Points:
    133
    Dash Address:
    XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
    Not the Sentinel bug. But I needed to do long downtime maintenance.
    I hope to finish today so a few hours more.

    I will be using a new HA DB (courtesy of Flare) which needs some fine tuning. So it can take more or less time. :p

    But no data was lost.
     
    • Like Like x 2
  9. jeffh

    jeffh Member

    Joined:
    May 8, 2017
    Messages:
    107
    Likes Received:
    45
    Trophy Points:
    78
    Ah okay. Thanks for the update! Keep up the good work.
     
  10. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    440
    Likes Received:
    466
    Trophy Points:
    133
    Dash Address:
    XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
    Back online, explorer still down until synced.

    Will still need some downtime to switch to the new DB. Don't know when for the moment.
     
  11. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    440
    Likes Received:
    466
    Trophy Points:
    133
    Dash Address:
    XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
    Now on the blocks page if the block height is indicated with green background it means it signaled bit1 (currently DIP0001).
    That means the miner and the masternode are updated to 0.12.2.x.
     
    • Like Like x 1
  12. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    440
    Likes Received:
    466
    Trophy Points:
    133
    Dash Address:
    XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
    IMPORTANT : Control+F5 your Dash Ninja pages to get latest version of HTML and Javascript. New version is much quicker but you need to clear your cache to have it.
     
    • Like Like x 1
  13. Sven

    Sven New Member
    Masternode Owner/Operator

    Joined:
    Aug 15, 2017
    Messages:
    25
    Likes Received:
    5
    Trophy Points:
    3
    Thanks for the update, but your new design breaks on less than super-wide windows. Not everyone stretches their browser window across the entire screen or even has a wide screen (mobile). Can you please fix this?

    failed collapse.png
     
    • Agree Agree x 1
  14. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    440
    Likes Received:
    466
    Trophy Points:
    133
    Dash Address:
    XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
    Changed some stuff so it works better on small screens (HTML v3.2.1 and JS v3.2.1). Not perfect but looks ok on my smartphone and when using 1/3 of my screen.
     
    • Like Like x 2
  15. Sven

    Sven New Member
    Masternode Owner/Operator

    Joined:
    Aug 15, 2017
    Messages:
    25
    Likes Received:
    5
    Trophy Points:
    3
    Thanks for the fix. One more little mistake in the Port Check section:

    "(it there is an Error Message..."

    Edit: Actually, once I'm at it, may as well offer an update to the whole section. There are a few more minor things:
     
    #195 Sven, Dec 5, 2017
    Last edited: Dec 5, 2017
    • Like Like x 1
  16. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    440
    Likes Received:
    466
    Trophy Points:
    133
    Dash Address:
    XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
    Fixed yesterday a nasty bug introduced when I optimized everything (a little over 420 of the newer Masternodes were not shown).
     
    • Like Like x 1
  17. demo

    demo Well-known Member

    Joined:
    Apr 23, 2016
    Messages:
    3,128
    Likes Received:
    261
    Trophy Points:
    153
    Dash Address:
    XnpT2YQaYpyh7F9twM6EtDMn1TCDCEEgNX
    Look at this
    https://demodun.github.io/mnowatch/

    It is a little cumbersome to do it that way (I mean without sql calls)
    Does the dashninja api provides an sql calls interface?
    Could you please provide the mnowatch info, directly into your dashninja.pl site using sql?
     
    #197 demo, Dec 23, 2017
    Last edited: Dec 23, 2017
  18. peter

    peter New Member

    Joined:
    Apr 1, 2015
    Messages:
    10
    Likes Received:
    5
    Trophy Points:
    3
    Thanks for the fix. Is it possible, that there is another bug in blocks.html: the Population count is perhaps about 400 too high.
     
  19. demo

    demo Well-known Member

    Joined:
    Apr 23, 2016
    Messages:
    3,128
    Likes Received:
    261
    Trophy Points:
    153
    Dash Address:
    XnpT2YQaYpyh7F9twM6EtDMn1TCDCEEgNX
    There are some other bugs too.For example:


    https://demodun.github.io/mnowatch/the_results_12-23-2017.html
    Enter in the search field: Adaptive-Proposal-Fees
    My script shows 579 votes.

    then lets take the older report of mine...
    https://demodun.github.io/mnowatch/the_ninja_results_12-22-2017.html
    search "Adaptive-Proposal-Fees" at both the three column search fields.
    it shows 263 yes+275 no +46 abstain= 584 votes

    This was not the real result!!! Adaptive-Proposal-Fees had more yes than no!!
    https://www.dashcentral.org/p/Adaptive-Proposal-Fees reports 458 Yes / 393 No / 74 Abstain

    in https://dashvotetracker.com/past.php (which depends on dashninja API)
    adaptive proposal fee shows 0 votes.

    and in your dashninja site it shows:
    212 yes+162 no+19 abstain= 413 votes
    But I counted the abstain votes that appear in the table below , and they are not 19. They are 74 (the same number that dashcentral reports).

    Have you deleted/lost the information of the Masternodes who voted for or against @GrandMasterDash 's proposal?

    Let us preserve the vote history, the same occurs in the Tree of Knowledge. One day everyone will be judged for the votes he/she casted.
     
    #199 demo, Dec 24, 2017
    Last edited: Dec 24, 2017
  20. demo

    demo Well-known Member

    Joined:
    Apr 23, 2016
    Messages:
    3,128
    Likes Received:
    261
    Trophy Points:
    153
    Dash Address:
    XnpT2YQaYpyh7F9twM6EtDMn1TCDCEEgNX
    https://www.dashninja.pl/data/masternodeslistfull-0.json

    The above shows the list of the active masternodes.
    How can I see the list of the masternodes that used to be active, but now they are offline?
     
  21. jeffh

    jeffh Member

    Joined:
    May 8, 2017
    Messages:
    107
    Likes Received:
    45
    Trophy Points:
    78
    Did you take into account the fact that votes can be changed by the people casting them?

    I could see there be a discrepancy if you don't account for that and elbereth does.
     
  22. dashuser_electro

    dashuser_electro New Member

    Joined:
    Dec 27, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi, thanks for running a really useful website. Just wanted to report a minor bug with dashninja. My masternode is not showing up in the list of masternodes on dashninja. The IP for the masternode is 108.61.184.36. The masternode is enabled according to the masternode list, and dashcentral, but dashninja won't show it. I had to restart the masternode on 25th december, after it fell out of the list, and ever since then dashninja hasn't shown it.
     
  23. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,621
    Likes Received:
    3,531
    Trophy Points:
    1,183
    • Useful Useful x 1
  24. jeffh

    jeffh Member

    Joined:
    May 8, 2017
    Messages:
    107
    Likes Received:
    45
    Trophy Points:
    78
  25. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    440
    Likes Received:
    466
    Trophy Points:
    133
    Dash Address:
    XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
  26. jeffh

    jeffh Member

    Joined:
    May 8, 2017
    Messages:
    107
    Likes Received:
    45
    Trophy Points:
    78
    Thanks for looking into this. Appreciate it.
     
  27. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    440
    Likes Received:
    466
    Trophy Points:
    133
    Dash Address:
    XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
  28. demo

    demo Well-known Member

    Joined:
    Apr 23, 2016
    Messages:
    3,128
    Likes Received:
    261
    Trophy Points:
    153
    Dash Address:
    XnpT2YQaYpyh7F9twM6EtDMn1TCDCEEgNX
    Why you refer to 12.1 version?
    Please upgrade to the latest version
     
  29. elbereth

    elbereth Active Member
    Dash Support Group

    Joined:
    Mar 25, 2014
    Messages:
    440
    Likes Received:
    466
    Trophy Points:
    133
    Dash Address:
    XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
    This Dash Ninja endpoint allows to check old pre 12.1 budgets votes. This can be used for historical values or masternode voting analysis.

    I don't think he is using that old of a wallet...
     
    • Like Like x 1
  30. jeffh

    jeffh Member

    Joined:
    May 8, 2017
    Messages:
    107
    Likes Received:
    45
    Trophy Points:
    78
    Ahh. That would definitely explain it.

    Thanks @elbereth
     

Share This Page