@@ -475,20 +475,19 @@ function validate_and_add_rpc_node(currency_name, api_list, node_id, node_config
475
475
function create_rpc_node_element ( api_list , is_live , node_id , node_config , is_selected ) {
476
476
const status_class = is_live ? " live" : " offline" ,
477
477
selected_class = is_selected ? " rpc_selected" : "" ,
478
- status_icon = is_live ? "connection" : "wifi-off" ,
479
478
node_name = node_config . name ,
480
479
custom = node_config . custom ,
481
480
node_url = node_config . url ,
482
481
stripped_url = custom && ( node_name == "alchemy" || node_name == "infura" ) ? strip_key_from_url ( node_url ) : node_url ,
483
482
vendor = node_config . vendor ,
484
- vendor_string = ( vendor ) ? " (" + vendor . slice ( 5 ) + ")" : "" ,
483
+ vendor_string = ( vendor ) ? "<span class='v'> (" + vendor . slice ( 5 ) + ")</span> " : "" ,
485
484
version = node_config . v ,
486
- version_string = ( version ) ? " (" + version + ")" : "" ,
485
+ version_string = ( version ) ? "<span class='v'> (" + version + ")</span> " : "" ,
487
486
display_name = setting_sub_address ( node_name , stripped_url , node_config . custom ) + vendor_string + version_string ,
488
487
node_icon_url = get_node_icon ( node_name ) ,
489
488
default_class = custom ? "" : " default" ,
490
489
node_icon = ( node_icon_url ) ? "<img src='" + fetch_aws ( node_icon_url ) + ".png' class='icon'>" : "" ,
491
- node_element = $ ( "<div class='optionwrap" + status_class + selected_class + default_class + "' style='display:none' data-pe='none' title='" + stripped_url + "'><span data-value='" + node_url + "' data-pe='none'>" + node_icon + display_name + "</ span><div class='opt_icon_box' data-pe='none'><div class='opt_icon c_stat icon- " + status_icon + "' data-pe='none'></div ><div class='opt_icon icon-bin' data-pe='none'></div></div>" ) ;
490
+ node_element = $ ( "<div class='optionwrap" + status_class + selected_class + default_class + "' style='display:none' data-pe='none' title='" + stripped_url + "'><span data-value='" + node_url + "' data-pe='none'>" + node_icon + "< span class='cstat'>•</span> " + display_name + "</span><div class='opt_icon_box' data-pe='none'><div class='opt_icon icon-bin' data-pe='none'></div></div>" ) ;
492
491
node_element . data ( node_config ) . appendTo ( api_list ) ;
493
492
node_element . slideDown ( 500 ) ;
494
493
}
@@ -854,6 +853,11 @@ function test_mempoolspace(input_section, node_config, currency_name) {
854
853
const parsed_data = br_result ( response ) ,
855
854
api_result = parsed_data . result ;
856
855
if ( api_result ) {
856
+ if ( api_result . error ) {
857
+ const error_obj = extract_error_details ( api_result . error ) ;
858
+ popnotify ( "error" , error_obj . errormessage ) ;
859
+ return
860
+ }
857
861
const first_tx = api_result [ 0 ] ;
858
862
if ( first_tx ) {
859
863
if ( first_tx . version ) {
0 commit comments