forked from iquidus/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request iquidus#321 from TheHolyRogerCoin/dev-addpeerinfotab
Network: Add tab with information to easily get addnode information for Wallets
- Loading branch information
Showing
8 changed files
with
156 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
script. | ||
$(document).ready(function(){ | ||
var ctable = $('#addnodes-table').dataTable( { | ||
autoWidth: true, | ||
searching: false, | ||
ordering: false, | ||
responsive: true, | ||
lengthChange: true, | ||
processing: true, | ||
ajax: { | ||
url: '/ext/connections', | ||
dataSrc: function ( json ) { | ||
var rows = [] | ||
for ( var i=0;i<json.data.length; i++ ) { | ||
rows.push({'nodes':'addnode='+json.data[i]['address']+':'+json.data[i]['port']}); | ||
} | ||
return rows; | ||
} | ||
}, | ||
columns: [ | ||
{ data: 'nodes', width: '100%' } | ||
], | ||
columnDefs: [ | ||
{ targets: '_all', className: 'text-left'} | ||
] | ||
}); | ||
var ctable = $('#addnodes2-table').dataTable( { | ||
autoWidth: true, | ||
searching: false, | ||
ordering: false, | ||
responsive: true, | ||
lengthChange: true, | ||
processing: true, | ||
ajax: { | ||
url: '/ext/connections', | ||
dataSrc: function ( json ) { | ||
var rows = [] | ||
for ( var i=0;i<json.data.length; i++ ) { | ||
rows.push({'nodes':'addnode '+json.data[i]['address']+':'+json.data[i]['port']+' onetry'}); | ||
} | ||
return rows; | ||
} | ||
}, | ||
columns: [ | ||
{ data: 'nodes', width: '100%' } | ||
], | ||
columnDefs: [ | ||
{ targets: '_all', className: 'text-left'} | ||
] | ||
}); | ||
}); | ||
.panel.panel-default | ||
.panel-body | ||
:markdown | ||
If you have trouble syncing your wallet, add these lines to your coin daemon .conf file and restart the wallet. | ||
|
||
*Typically you can access the config file through QT-wallet menu, Tools > Open Wallet Configuration File* | ||
table#addnodes-table.table.table-bordered.table-striped | ||
thead | ||
tr | ||
th.text-center AddNode Config Lines | ||
tbody.text-center | ||
|
||
.panel-body | ||
:markdown | ||
Alternatively you can try one of these lines in the coin wallet debug window, or add them with *coindaemon*-cli | ||
table#addnodes2-table.table.table-bordered.table-striped | ||
thead | ||
tr | ||
th.text-center OneTry Node Lines | ||
tbody.text-center |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
script. | ||
$(document).ready(function(){ | ||
var ctable = $('#connections-table').dataTable( { | ||
autoWidth: true, | ||
searching: false, | ||
ordering: false, | ||
responsive: true, | ||
lengthChange: true, | ||
processing: true, | ||
ajax: { | ||
url: '/ext/connections', | ||
dataSrc: function ( json ) { | ||
/*for ( var i=0;i<json.data.length; i++ ) { | ||
json.data[i]['timestamp'] = new Date((json.data[i]['timestamp']) * 1000).toUTCString(); | ||
json.data[i]['txid'] = "<a href='/tx/" + json.data[i]['txid'] + "'>" + json.data[i]['txid'] + "</a>"; | ||
json.data[i]['blockindex'] = "<a href='/block/" + json.data[i]['blockhash'] + "'>" + json.data[i]['blockindex'] + "</a>"; | ||
var amount = json.data[i]['total'] / 100000000; | ||
json.data[i]['total'] = amount.toFixed(8); | ||
json.data[i]['recipients'] = json.data[i]['vout'].length; | ||
}*/ | ||
return json.data; | ||
} | ||
}, | ||
columns: [ | ||
{ data: 'address', width: '25%' }, | ||
{ data: 'protocol', width: '25%' }, | ||
{ data: 'version', width:'25%' }, | ||
{ data: 'country', width: '25%'} | ||
] | ||
}); | ||
}); | ||
.panel.panel-default | ||
table#connections-table.table.table-bordered.table-striped | ||
thead | ||
tr | ||
th.text-center #{settings.locale.net_address} | ||
th.text-center #{settings.locale.net_protocol} | ||
th.text-center #{settings.locale.net_subversion} | ||
th.text-center #{settings.locale.net_country} | ||
tbody.text-center |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,17 @@ | ||
extends layout | ||
|
||
block content | ||
script. | ||
$(document).ready(function(){ | ||
var ctable = $('#connections-table').dataTable( { | ||
autoWidth: true, | ||
searching: false, | ||
ordering: false, | ||
responsive: true, | ||
lengthChange: true, | ||
processing: true, | ||
ajax: { | ||
url: '/ext/connections', | ||
dataSrc: function ( json ) { | ||
/*for ( var i=0;i<json.data.length; i++ ) { | ||
json.data[i]['timestamp'] = new Date((json.data[i]['timestamp']) * 1000).toUTCString(); | ||
json.data[i]['txid'] = "<a href='/tx/" + json.data[i]['txid'] + "'>" + json.data[i]['txid'] + "</a>"; | ||
json.data[i]['blockindex'] = "<a href='/block/" + json.data[i]['blockhash'] + "'>" + json.data[i]['blockindex'] + "</a>"; | ||
var amount = json.data[i]['total'] / 100000000; | ||
json.data[i]['total'] = amount.toFixed(8); | ||
json.data[i]['recipients'] = json.data[i]['vout'].length; | ||
}*/ | ||
return json.data; | ||
} | ||
}, | ||
columns: [ | ||
{ data: 'address', width: '25%' }, | ||
{ data: 'protocol', width: '25%' }, | ||
{ data: 'version', width:'25%' }, | ||
{ data: 'country', width: '25%'} | ||
] | ||
}); | ||
}); | ||
.col-md-12(style="margin-bottom: 4%") | ||
.row.text-center(style='margin-bottom:15px;') | ||
i #{settings.locale.net_warning} | ||
.panel.panel-default | ||
.panel-heading | ||
strong #{settings.locale.net_connections} | ||
table#connections-table.table.table-bordered.table-striped | ||
thead | ||
tr | ||
th.text-center #{settings.locale.net_address} | ||
th.text-center #{settings.locale.net_protocol} | ||
th.text-center #{settings.locale.net_subversion} | ||
th.text-center #{settings.locale.net_country} | ||
tbody.text-center | ||
.tabpanel | ||
ul.nav.nav-tabs(role='tablist') | ||
li.active(role='presentation') | ||
a(href='#connections', aria-controls='connections', role='tab', data-toggle='tab') #{settings.locale.net_connections} | ||
li(role='presentation') | ||
a(href='#addnodes', aria-controls='addnodes', role='tab', data-toggle='tab') #{settings.locale.net_addnodes} | ||
.tab-content | ||
#connections.tabpanel.tab-pane.active | ||
include ./includes/net_list.jade | ||
#addnodes.tabpanel.tab-pane | ||
include ./includes/net_addnodes.jade |