Update pool matching

This commit is contained in:
Sky Young 2018-05-18 15:53:45 -07:00
parent b3348c4cce
commit a4404e432a
3 changed files with 12 additions and 231 deletions

View File

@ -342,10 +342,10 @@ BlockController.prototype.getPoolInfo = function(tx) {
if (!tx) {
return {};
}
var coinbaseBuffer = tx.inputs[0].script.raw;
var strFloData = tx.inputs[0].floData;
for(var k in this.poolStrings) {
if (coinbaseBuffer.toString('utf-8').match(k)) {
if (strFloData.match(k)) {
return this.poolStrings[k];
}
}

View File

@ -1,7 +1,7 @@
{
"name": "flosight-api",
"description": "A Florincoin blockchain REST and web socket API service for Flocore Node.",
"version": "5.0.0-beta.54",
"version": "5.0.0-beta.55",
"repository": "git://github.com/bitpay/flosight-api.git",
"bugs": {
"url": "https://github.com/bitpay/flosight-api/issues"

View File

@ -1,242 +1,23 @@
[
{
"poolName": "50BTC",
"url": "https://50btc.com/",
"poolName": "Mining Dutch",
"url": "https://www.mining-dutch.nl",
"searchStrings": [
"50BTC.com",
"50btc.com"
"https://www.mining-dutch.nl"
]
},
{
"poolName": "175btc",
"url": "http://www.175btc.com/",
"poolName": "SuprNova",
"url": "https://flo.suprnova.cc",
"searchStrings": [
"Mined By 175btc.com"
"https://flo.suprnova.cc"
]
},
{
"poolName": "ASICminer",
"url": "https://florincointalk.org/index.php?topic=99497.0",
"poolName": "TheCoin",
"url": "http://thecoin.pw",
"searchStrings": [
"Mined By ASICMiner"
]
},
{
"poolName": "AntMiner",
"url": "https://bitmaintech.com/",
"searchStrings": [
"AntPool"
]
},
{
"poolName": "agentD",
"url": "http://",
"searchStrings": [
"agentD"
]
},
{
"poolName": "Bitfury",
"url": "http://bitfury.org/",
"searchStrings": [
"2av0id51pct"
]
},
{
"poolName": "BitMinter",
"url": "https://bitminter.com/",
"searchStrings": [
"BitMinter"
]
},
{
"poolName": "Bitparking",
"url": "http://bitparking.com/",
"searchStrings": [
"bitparking"
]
},
{
"poolName": "BTC Guild",
"url": "https://www.btcguild.com/",
"searchStrings": [
"Mined by BTC Guild",
"BTC Guild"
]
},
{
"poolName": "bcpool.io",
"url": "https://bcpool.io/",
"searchStrings": [
"bcpool"
]
},
{
"poolName": "Discus Fish",
"url": "http://f2pool.com/",
"searchStrings": [
"七彩神仙鱼",
"Made in China",
"Mined by user"
]
},
{
"poolName": "Discus Fish Solo",
"url": "http://f2pool.com/",
"searchStrings": [
"For Pierce and Paul"
]
},
{
"poolName": "Cointerra",
"url": "http://cointerra.com/",
"searchStrings": [
"cointerra"
]
},
{
"poolName": "Eligius",
"url": "http://eligius.st/",
"searchStrings": [
"Eligius"
]
},
{
"poolName": "EclipseMC",
"url": "https://eclipsemc.com/",
"searchStrings": [
"Josh Zerlan was here!",
"EclipseMC",
"Aluminum Falcon"
]
},
{
"poolName": "GIVE-ME-COINS",
"url": "https://give-me-coins.com/",
"searchStrings": [
"Mined at GIVE-ME-COINS.com"
]
},
{
"poolName": "ghash.io",
"url": "https://ghash.io/",
"searchStrings": [
"ghash.io",
"GHash.IO"
]
},
{
"poolName": "HHTT",
"url": "http://hhtt.1209k.com/",
"searchStrings": [
"HHTT"
]
},
{
"poolName": "KNCminer",
"url": "https://www.kncminer.com/",
"searchStrings": [
"KnCMiner"
]
},
{
"poolName": "Megabigpower",
"url": "http://megabigpower.com/",
"searchStrings": [
"megabigpower.com"
]
},
{
"poolName": "MultiCoin",
"url": "https://multicoin.co/",
"searchStrings": [
"MultiCoin.co"
]
},
{
"poolName": "Mt Red",
"url": "https://mtred.com/",
"searchStrings": [
"/mtred/"
]
},
{
"poolName": "MaxBTC",
"url": "https://www.maxbtc.com",
"searchStrings": [
"MaxBTC"
]
},
{
"poolName": "NMCbit",
"url": "http://nmcbit.com/",
"searchStrings": [
"nmcbit.com"
]
},
{
"poolName": "ozcoin",
"url": "https://ozco.in/",
"searchStrings": [
"ozco.in",
"ozcoin"
]
},
{
"poolName": "Polmine.pl",
"url": "https://polmine.pl",
"searchStrings": [
"by polmine.pl"
]
},
{
"poolName": "simplecoin",
"url": "http://simplecoin.us/",
"searchStrings": [
"simplecoin.us ftw"
]
},
{
"poolName": "SlushPool",
"url": "https://slushpool.com/",
"searchStrings": [
"/slush/"
]
},
{
"poolName": "TripleMining",
"url": "https://www.triplemining.com/",
"searchStrings": [
"Triplemining.com"
]
},
{
"poolName": "wizkid057",
"url": "http://wizkid057.com/btc",
"searchStrings": [
"wizkid057"
]
},
{
"poolName": "Yourbtc.net",
"url": "http://yourbtc.net/",
"searchStrings": [
"yourbtc.net"
]
},
{
"poolName": "BTCChina Pool",
"url": "https://pool.btcchina.com/",
"searchStrings": [
"BTCChina Pool",
"btcchina.com"
]
},
{
"poolName":"BTCC Pool",
"url":"https://pool.btcc.com/",
"searchStrings":[
"/BTCC/"
"http://thecoin.pw"
]
}
]