Skip to content
Snippets Groups Projects
Commit 78d4f71c authored by inertia's avatar inertia
Browse files

#73 now doing in-line fullnodeupdate node lookup

parent 50ea4aee
No related branches found
No related tags found
1 merge request!114Restoring Master
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" > <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" >
<meta property="og:image" content="{{ '/images/sticker.png' | relative_url }}" /> <meta property="og:image" content="{{ '/images/sticker.png' | relative_url }}" />
<script src="https://cdn.jsdelivr.net/npm/@hiveio/hive-js/dist/hive.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Cousine|Inconsolata" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css?family=Cousine|Inconsolata" rel="stylesheet" />
......
...@@ -10,19 +10,92 @@ Applications that interface directly with the Hive blockchain will need to conne ...@@ -10,19 +10,92 @@ Applications that interface directly with the Hive blockchain will need to conne
Although `hived` fully supports WebSockets (`wss://` and `ws://`) public nodes typically do not. All nodes listed use HTTPS (`https://`). If you require WebSockets for your solutions, please consider setting up your own `hived` node or proxy WebSockets to HTTPS using [lineman](https://gitlab.syncad.com/hive/lineman). Although `hived` fully supports WebSockets (`wss://` and `ws://`) public nodes typically do not. All nodes listed use HTTPS (`https://`). If you require WebSockets for your solutions, please consider setting up your own `hived` node or proxy WebSockets to HTTPS using [lineman](https://gitlab.syncad.com/hive/lineman).
| URL | Owner | <div id="report">
| ------------------------------- | -------------- | <table>
| api.hive.blog | @blocktrades | <thead>
| api.openhive.network | @gtg | <tr><th>URL</th><th>Owner</th><th style="display: none;"></th></tr>
| anyx.io | @anyx | </thead>
| api.hivekings.com | @drakos | <tbody>
| hived.privex.io | @privex | <tr><td>api.hive.blog</td><td>@blocktrades</td><td style="display: none;"></td></tr>
| rpc.ausbit.dev | @ausbitbank | <tr><td>api.openhive.network</td><td>@gtg</td><td style="display: none;"></td></tr>
| api.pharesim.me | @pharesim | <tr><td>anyx.io</td><td>@anyx</td><td style="display: none;"></td></tr>
| techcoderx.com | @techcoderx | <tr><td>api.hivekings.com</td><td>@drakos</td><td style="display: none;"></td></tr>
| rpc.esteem.app | @esteem | <tr><td>hived.privex.io</td><td>@privex</td><td style="display: none;"></td></tr>
| hive.roelandp.nl | @roelandp | <tr><td>rpc.ausbit.dev</td><td>@ausbitbank</td><td style="display: none;"></td></tr>
| hived.emre.sh | @emrebeyler | <tr><td>techcoderx.com</td><td>@techcoderx</td><td style="display: none;"></td></tr>
<tr><td>rpc.ecency.com</td><td>@ecency</td><td style="display: none;"></td></tr>
<tr><td>hive.roelandp.nl</td><td>@roelandp</td><td style="display: none;"></td></tr>
<tr><td>hived.emre.sh</td><td>@emrebeyler</td><td style="display: none;"></td></tr>
<tr><td>api.deathwing.me</td><td>@deathwing</td><td style="display: none;"></td></tr>
<tr><td>api.c0ff33a.uk</td><td>@c0ff33a</td><td style="display: none;"></td></tr>
<tr><td>hive-api.arcange.eu</td><td>@arcange</td><td style="display: none;"></td></tr>
</tbody>
</table>
</div>
<div id="untracked_report"></div>
<script>
$(document).ready(function() {
hive.api.getAccounts(['fullnodeupdate'], function(err, result) {
var fullnodeupdate = result[0];
var reportData = jQuery.parseJSON(fullnodeupdate.json_metadata).report;
var failingNodes = jQuery.parseJSON(fullnodeupdate.json_metadata).failing_nodes;
var reportRows = $('#report > table > tbody > tr');
var tracked = [];
jQuery.each(reportRows, function(i, row) {
jQuery.each(reportData, function(j, r) {
var host = $(row).find('td:nth-child(1)').text();
if ( (r.node.indexOf(host) != -1 || !r.hive) && !tracked.includes(j) ) {
tracked.push(j);
}
with ( $(row).find('td:nth-child(3)') ) {
if ( r.node.indexOf(host) != -1 && !!r.hive ) {
html('Version: <code>' + r.version + '</code> ' + (r.history.ok ? '✅' : '⚠️'));
} else {
jQuery.each(Object.keys(failingNodes), function(k, f) {
if ( f.indexOf(host) != -1 ) {
html('Failing ⛔');
}
});
}
show();
}
});
});
with ( $('#report > table > thead > tr > th:nth-child(3)') ) {
text('Details');
show();
}
with ( $('#untracked_report') ) {
empty();
if ( tracked.length != reportData.length ) {
append("<p>Also see the following public nodes:</p><ul>");
jQuery.each(reportData, function(i, r) {
if ( !!r.hive && !tracked.includes(i) ) {
var host = r.node.split('https://')[1];
if ( !!host && host.length > 0 ) {
append('<li>' + host + ', version: <code>' + r.version + '</code> ' + (r.history.ok ? '✅' : '⚠️') + '</li>');
}
}
});
append("</ul><p>&nbsp;</p>");
}
}
});
});
</script>
For a report on the latest public full nodes, check the latest posts on [@fullnodeupdate](https://hive.blog/@fullnodeupdate) by [@holger80](https://hive.blog/@holger80). For a report on the latest public full nodes, check the latest posts on [@fullnodeupdate](https://hive.blog/@fullnodeupdate) by [@holger80](https://hive.blog/@holger80).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment