Add a error message if it is unable to fetch prices
This commit is contained in:
parent
9af67ae75d
commit
a3e10ab36f
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
* Main Gateway of Monero using either a local daemon or the explorer
|
* Main Gateway of Monero using either a local daemon or the explorer
|
||||||
* Authors: Serhack, cryptochangements, mosu-forge
|
* Authors: SerHack, cryptochangements, mosu-forge
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
defined( 'ABSPATH' ) || exit;
|
||||||
@ -280,6 +280,9 @@ class Monero_Gateway extends WC_Payment_Gateway
|
|||||||
$wpdb->query($query);
|
$wpdb->query($query);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
self::$log->add('Monero_Payments', "[ERROR] Unable to fetch prices from cryptocompare.com.");
|
||||||
|
}
|
||||||
|
|
||||||
// Get current network/wallet height
|
// Get current network/wallet height
|
||||||
if(self::$confirm_type == 'monero-wallet-rpc')
|
if(self::$confirm_type == 'monero-wallet-rpc')
|
||||||
|
Loading…
Reference in New Issue
Block a user