Skip to content

Commit 104d92b

Browse files
committed
socket node name
1 parent 096e04c commit 104d92b

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

assets_js_bitrequest_monitors.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,6 @@ function continue_select(rd, api_data, rdo) {
231231

232232
function continue_select_api(rd, api_data, rdo) {
233233
const api_name = api_data.name;
234-
if (rdo.source === "addr_polling") {
235-
glob_let.rpc_attempts = {}
236-
continue_select(rd, api_data, rdo);
237-
return
238-
}
239234
if (api_name === "mymonero api") {
240235
monero_fetch_init(rd, api_data, rdo);
241236
return

assets_js_bitrequest_sockets.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,13 +1304,14 @@ function closesocket(s_id) {
13041304

13051305
// Updates the UI with socket connection information
13061306
function socket_info(snode, live, polling) {
1307-
const l2 = snode.network;
1307+
const l2 = snode.network,
1308+
node_name = snode.url || snode.name;
13081309
if (l2) {
13091310
set_l2_status(snode, live);
13101311
} else {
13111312
const islive = live ? " <span class='pulse'></span>" : " <span class='icon-wifi-off'></span>",
13121313
method = polling ? "polling" : "websocket",
1313-
contents = method + ": " + snode.url + islive,
1314+
contents = method + ": " + node_name + islive,
13141315
paymentaddress = $("#paymentaddress");
13151316
$("#current_socket").html(contents);
13161317
if (live) {
@@ -1320,7 +1321,7 @@ function socket_info(snode, live, polling) {
13201321
}
13211322
}
13221323
if (live) {
1323-
console.log("Connected: " + snode.url);
1324+
console.log("Connected: " + node_name);
13241325
glob_const.paymentpopup.addClass("live");
13251326
closenotify();
13261327
return

0 commit comments

Comments
 (0)