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

jeffh

Member
May 8, 2017
108
45
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!
 
Last edited:

elbereth

Active Member
Dash Support Group
Mar 25, 2014
440
466
133
Costa Rica
dashninja.pl
Dash Address
XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
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!
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
 
Last edited:
  • Like
Reactions: tungfa

elbereth

Active Member
Dash Support Group
Mar 25, 2014
440
466
133
Costa Rica
dashninja.pl
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.
 

jeffh

Member
May 8, 2017
108
45
78
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.

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

Regards,
Alex
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.
 

elbereth

Active Member
Dash Support Group
Mar 25, 2014
440
466
133
Costa Rica
dashninja.pl
Dash Address
XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
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.
Results are cached and there is a maximum number of queries that can be treated (the server is far from this limit).
 

jeffh

Member
May 8, 2017
108
45
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?
 

elbereth

Active Member
Dash Support Group
Mar 25, 2014
440
466
133
Costa Rica
dashninja.pl
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
Reactions: splawik21 and jeffh

elbereth

Active Member
Dash Support Group
Mar 25, 2014
440
466
133
Costa Rica
dashninja.pl
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.
 

elbereth

Active Member
Dash Support Group
Mar 25, 2014
440
466
133
Costa Rica
dashninja.pl
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
Reactions: UdjinM6

elbereth

Active Member
Dash Support Group
Mar 25, 2014
440
466
133
Costa Rica
dashninja.pl
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
Reactions: UdjinM6

Sven

Member
Masternode Owner/Operator
Aug 15, 2017
45
12
48
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.
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
 

elbereth

Active Member
Dash Support Group
Mar 25, 2014
440
466
133
Costa Rica
dashninja.pl
Dash Address
XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
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?
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
Reactions: UdjinM6 and Sven

Sven

Member
Masternode Owner/Operator
Aug 15, 2017
45
12
48
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:
The Port Checker tries every hour to read the version number by contacting dashd directly. If it fails, it will continue displaying the last version number it was able to fetch (if there is an error message, the version might be wrong). Protocol is from the masternode start command, so the latest version is good.
 
Last edited:
  • Like
Reactions: elbereth

elbereth

Active Member
Dash Support Group
Mar 25, 2014
440
466
133
Costa Rica
dashninja.pl
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
Reactions: UdjinM6

demo

Well-known Member
Apr 23, 2016
3,114
263
153
Dash Address
XnpT2YQaYpyh7F9twM6EtDMn1TCDCEEgNX
Last edited:

peter

New Member
Apr 1, 2015
10
5
3
Fixed yesterday a nasty bug introduced when I optimized everything (a little over 420 of the newer Masternodes were not shown).
Thanks for the fix. Is it possible, that there is another bug in blocks.html: the Population count is perhaps about 400 too high.
 

demo

Well-known Member
Apr 23, 2016
3,114
263
153
Dash Address
XnpT2YQaYpyh7F9twM6EtDMn1TCDCEEgNX
Fixed yesterday a nasty bug introduced when I optimized everything (a little over 420 of the newer Masternodes were not shown).
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.
 
Last edited:

jeffh

Member
May 8, 2017
108
45
78
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.
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.
 

dashuser_electro

New Member
Dec 27, 2017
1
0
1
35
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.
 

elbereth

Active Member
Dash Support Group
Mar 25, 2014
440
466
133
Costa Rica
dashninja.pl
Dash Address
XkfkHqMnhvQovo7kXQjvnNiFnQhRNZYCsz
Why you refer to 12.1 version?
Please upgrade to the latest version
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
Reactions: UdjinM6