|
@ -157,10 +157,6 @@ function loadHistoricalDataForChain(chain) { |
|
|
global.specialBlocks = {}; |
|
|
global.specialBlocks = {}; |
|
|
global.specialAddresses = {}; |
|
|
global.specialAddresses = {}; |
|
|
|
|
|
|
|
|
if (config.donations.addresses && config.donations.addresses[coinConfig.ticker]) { |
|
|
|
|
|
global.specialAddresses[config.donations.addresses[coinConfig.ticker].address] = {type:"donation"}; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (global.coinConfig.historicalData) { |
|
|
if (global.coinConfig.historicalData) { |
|
|
global.coinConfig.historicalData.forEach(function(item) { |
|
|
global.coinConfig.historicalData.forEach(function(item) { |
|
|
if (item.chain == chain) { |
|
|
if (item.chain == chain) { |
|
@ -284,21 +280,6 @@ app.continueStartup = function() { |
|
|
global.verifyRpcConnectionIntervalId = setInterval(verifyRpcConnection, 30000); |
|
|
global.verifyRpcConnectionIntervalId = setInterval(verifyRpcConnection, 30000); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (config.donations.addresses) { |
|
|
|
|
|
var getDonationAddressQrCode = function(coinId) { |
|
|
|
|
|
qrcode.toDataURL(config.donations.addresses[coinId].address, function(err, url) { |
|
|
|
|
|
global.donationAddressQrCodeUrls[coinId] = url; |
|
|
|
|
|
}); |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
global.donationAddressQrCodeUrls = {}; |
|
|
|
|
|
|
|
|
|
|
|
config.donations.addresses.coins.forEach(function(item) { |
|
|
|
|
|
getDonationAddressQrCode(item); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (config.addressApi) { |
|
|
if (config.addressApi) { |
|
|
var supportedAddressApis = addressApi.getSupportedAddressApis(); |
|
|
var supportedAddressApis = addressApi.getSupportedAddressApis(); |
|
|
if (!supportedAddressApis.includes(config.addressApi)) { |
|
|
if (!supportedAddressApis.includes(config.addressApi)) { |
|
|