Dan Janosik
5 years ago
No known key found for this signature in database
GPG Key ID: C6F8CE9FFDB2CED2
3 changed files with
2 additions and
23 deletions
-
README.md
-
app.js
-
app/config.js
|
|
@ -71,7 +71,7 @@ See `btc-rpc-explorer --help` for the full list of CLI options. |
|
|
|
|
|
|
|
# Support |
|
|
|
|
|
|
|
* [3NPGpNyLLmVKCEcuipBs7G4KpQJoJXjDGe](bitcoin:3NPGpNyLLmVKCEcuipBs7G4KpQJoJXjDGe) |
|
|
|
* [https://donation.btc21.org](https://donate.btc21.org/apps/2TBP2GuQnYXGBiHQkmf4jNuMh6eN/pos) |
|
|
|
|
|
|
|
|
|
|
|
[npm-ver-img]: https://img.shields.io/npm/v/btc-rpc-explorer.svg?style=flat |
|
|
|
|
|
@ -157,10 +157,6 @@ function loadHistoricalDataForChain(chain) { |
|
|
|
global.specialBlocks = {}; |
|
|
|
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) { |
|
|
|
global.coinConfig.historicalData.forEach(function(item) { |
|
|
|
if (item.chain == chain) { |
|
|
@ -284,21 +280,6 @@ app.continueStartup = function() { |
|
|
|
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) { |
|
|
|
var supportedAddressApis = addressApi.getSupportedAddressApis(); |
|
|
|
if (!supportedAddressApis.includes(config.addressApi)) { |
|
|
|
|
|
@ -183,9 +183,7 @@ module.exports = { |
|
|
|
donations:{ |
|
|
|
addresses:{ |
|
|
|
coins:["BTC"], |
|
|
|
sites:{"BTC":"https://explorer.btc21.org"}, |
|
|
|
|
|
|
|
"BTC":{address:"3NPGpNyLLmVKCEcuipBs7G4KpQJoJXjDGe"} |
|
|
|
sites:{"BTC":"https://explorer.btc21.org"} |
|
|
|
}, |
|
|
|
btcpayserver:{ |
|
|
|
host:"https://donate.btc21.org", |
|
|
|