forked from btccom/Blockchain-Known-Pools
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add IDs for pools #74
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These IDs should not be changed. They can be relied upon in e.g. links or in databases as identifieres. I used the mempool-space slugs (see https://github.com/mempool/mining-pools/blob/e73a42541eea345eb7bd65c02fa418778f0a909c/pools.json#L1322-L1461) where avaliable. See the following script: ```python #!/usr/bin/env python3 import json import glob import sys entity_files = glob.glob("pools/*.json") # from https://github.com/mempool/mining-pools/blob/e73a42541eea345eb7bd65c02fa418778f0a909c/pools.json#L1322-L1461 mempool_space_ids = { "BlockFills": "blockfills", "ULTIMUSPOOL": "ultimuspool", "Terra Pool": "terrapool", "Luxor": "luxor", "1THash": "1thash", "BTC.com": "btccom", "Bitfarms": "bitfarms", "Huobi.pool": "huobipool", "WAYI.CN": "wayicn", "CanoePool": "canoepool", "BTC.TOP": "btctop", "Bitcoin.com": "bitcoincom", "175btc": "175btc", "GBMiners": "gbminers", "A-XBT": "axbt", "ASICMiner": "asicminer", "BitMinter": "bitminter", "BitcoinRussia": "bitcoinrussia", "BTCServ": "btcserv", "simplecoin.us": "simplecoinus", "BTC Guild": "btcguild", "Eligius": "eligius", "OzCoin": "ozcoin", "EclipseMC": "eclipsemc", "MaxBTC": "maxbtc", "TripleMining": "triplemining", "CoinLab": "coinlab", "50BTC": "50btc", "GHash.IO": "ghashio", "ST Mining Corp": "stminingcorp", "Bitparking": "bitparking", "mmpool": "mmpool", "Polmine": "polmine", "KnCMiner": "kncminer", "Bitalo": "bitalo", "F2Pool": "f2pool", "HHTT": "hhtt", "MegaBigPower": "megabigpower", "Mt Red": "mtred", "NMCbit": "nmcbit", "Yourbtc.net": "yourbtcnet", "Give Me Coins": "givemecoins", "Braiins Pool": "braiinspool", "AntPool": "antpool", "MultiCoin.co": "multicoinco", "bcpool.io": "bcpoolio", "Cointerra": "cointerra", "KanoPool": "kanopool", "Solo CK": "solock", "CKPool": "ckpool", "NiceHash": "nicehash", "BitClub": "bitclub", "Bitcoin Affiliate Network": "bitcoinaffiliatenetwork", "BTCC": "btcc", "BWPool": "bwpool", "EXX&BW": "exx&bw", "Bitsolo": "bitsolo", "BitFury": "bitfury", "21 Inc.": "21inc", "digitalBTC": "digitalbtc", "8baochi": "8baochi", "myBTCcoin Pool": "mybtccoinpool", "TBDice": "tbdice", "HASHPOOL": "hashpool", "Nexious": "nexious", "Bravo Mining": "bravomining", "HotPool": "hotpool", "OKExPool": "okexpool", "BCMonster": "bcmonster", "1Hash": "1hash", "Bixin": "bixin", "TATMAS Pool": "tatmaspool", "ViaBTC": "viabtc", "ConnectBTC": "connectbtc", "BATPOOL": "batpool", "Waterhole": "waterhole", "DCExploration": "dcexploration", "DCEX": "dcex", "BTPOOL": "btpool", "58COIN": "58coin", "Bitcoin India": "bitcoinindia", "shawnp0wers": "shawnp0wers", "PHash.IO": "phashio", "RigPool": "rigpool", "HAOZHUZHU": "haozhuzhu", "7pool": "7pool", "MiningKings": "miningkings", "HashBX": "hashbx", "DPOOL": "dpool", "Rawpool": "rawpool", "haominer": "haominer", "Helix": "helix", "Bitcoin-Ukraine": "bitcoinukraine", "Poolin": "poolin", "SecretSuperstar": "secretsuperstar", "tigerpool.net": "tigerpoolnet", "Sigmapool.com": "sigmapoolcom", "okpool.top": "okpooltop", "Hummerpool": "hummerpool", "Tangpool": "tangpool", "BytePool": "bytepool", "SpiderPool": "spiderpool", "NovaBlock": "novablock", "MiningCity": "miningcity", "Binance Pool": "binancepool", "Minerium": "minerium", "Lubian.com": "lubiancom", "OKKONG": "okkong", "AAO Pool": "aaopool", "EMCDPool": "emcdpool", "Foundry USA": "foundryusa", "SBI Crypto": "sbicrypto", "ArkPool": "arkpool", "PureBTC.COM": "purebtccom", "MARA Pool": "marapool", "KuCoinPool": "kucoinpool", "Entrust Charity Pool": "entrustcharitypool", "BTC Nuggets": "btcnuggets", "CloudHashing": "cloudhashing", "digitalX Mintsy": "digitalxmintsy", "Telco 214": "telco214", "BTC Pool Party": "btcpoolparty", "Multipool": "multipool", "transactioncoinmining": "transactioncoinmining", "BTCDig": "btcdig", "Tricky's BTC Pool": "trickysbtcpool", "BTCMP": "btcmp", "Eobot": "eobot", "UNOMP": "unomp", "Patels": "patels", "GoGreenLight": "gogreenlight", "BitcoinIndia": "bitcoinindia", "EkanemBTC": "ekanembtc", "CANOE": "canoe", "tiger": "tiger", "1M1X": "1m1x", "OKMiner": "okminer", "Titan": "titan" } new_ids = { "OKMINER": "okminer", "Carbon Negative (unidentified)": "carbonnegative", "UKRPool": "ukrpool", "TogetherPool": "togetherpool", "Bitdeer": "bitdeer", "KuCoin Pool": "kucoinpool", # aka KuCoinPool above "Ultimus Pool": "ultimuspool", # aka ULTIMUSPOOL above "Pega Pool": "pegapool", "Tiger Pool": "tigerpool", # aka "tiger" and "tigerpoolnet" above "TMSPool": "tmspool", "BTCPool": "btcpool", "CN/TT": "cntt", "SlushPool": "slush", "Huobi Pool": "huobipool", "BTCPool (unidentified)": "btcpool", } ids = {**mempool_space_ids, **new_ids} for file_path in entity_files: with open(file_path, "r") as f: e = json.load(f) id = ids[e["name"]] content = { "id": id, "name": e["name"], "addresses": e["addresses"], "tags": e["tags"], "link": e["link"], } del ids[e["name"]] with open(file_path, "w") as out: json.dump(content, out, indent=2, ensure_ascii=False) out.write('\n') print("ids left:", ids) ``` This prints the following. I've added commentary why this name->id mapping wasn't used. ``` ids left: { 'ULTIMUSPOOL': 'ultimuspool', # renamed "Ultimus Pool" 'Huobi.pool': 'huobipool', # rename "Huobi Pool" 'Braiins Pool': 'braiinspool', # not yet including Braiins Pool (should be a rename of id=slush) 'MiningKings': 'miningkings', # removed earlier 'tigerpool.net': 'tigerpoolnet', # consolidated with tiger to tigerpool 'PureBTC.COM': 'purebtccom', # not yet added 'KuCoinPool': 'kucoinpool', # renamed to 'KuCoin Pool' 'Entrust Charity Pool': 'entrustcharitypool', # never even mined a block? https://mempool.space/mining/pool/entrustcharitypool 'BTC Pool Party': 'btcpoolparty', # not traced (1PmRrdp1YSkp1LxPyCfcmBHDEipG5X4eJB isn't identificable) 'tiger': 'tiger', # consolidated with tigerpoolnet to tigerpool '1M1X': '1m1x', # Not an identified mining pool, and not yet tracked #73 'OKMiner': 'okminer', # renamed to OKMINER 'BTCPool': 'btcpool' # duplicate } ```
0xB10C
force-pushed
the
2022-12-add-ids
branch
from
December 19, 2022 14:01
609e7f8
to
e1b8f60
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For mempool#25. These IDs should not be changed as we want to rely on them in links or in databases as identifiers.
I used the mempool-space slugs where available. See the following script:
This prints the following. I've added commentary on why the name -> id mapping wasn't used.