From e44785b68891837f4583ec80c8cd0c40bc658fd4 Mon Sep 17 00:00:00 2001 From: Decho Kocharin Date: Sun, 24 Nov 2024 16:00:10 +0700 Subject: [PATCH] Add FortuneBlock --- .../Blockchain/Bitcoin/BitcoinJob.cs | 8 +++++ src/Miningcore/coins.json | 33 +++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/src/Miningcore/Blockchain/Bitcoin/BitcoinJob.cs b/src/Miningcore/Blockchain/Bitcoin/BitcoinJob.cs index 18c4486ed..c7da778f0 100644 --- a/src/Miningcore/Blockchain/Bitcoin/BitcoinJob.cs +++ b/src/Miningcore/Blockchain/Bitcoin/BitcoinJob.cs @@ -912,6 +912,14 @@ public void Init(BlockTemplate blockTemplate, string jobId, if(coin.HasMasterNodes) { masterNodeParameters = BlockTemplate.Extra.SafeExtensionDataAs(); + + if(coin.Symbol == "FTB") + { + if(masterNodeParameters.Extra?.ContainsKey("fortune") == true) + { + masterNodeParameters.Masternode = JToken.FromObject(masterNodeParameters.Extra["fortune"]); + } + } if(coin.HasSmartNodes) { diff --git a/src/Miningcore/coins.json b/src/Miningcore/coins.json index abd1be923..c98537e8b 100644 --- a/src/Miningcore/coins.json +++ b/src/Miningcore/coins.json @@ -1350,6 +1350,39 @@ "explorerTxLink": "https://livenet.flocha.in/tx/{0}", "explorerAccountLink": "https://livenet.flocha.in/address/{0}" }, + "fortuneblock": { + "name": "FortuneBlock", + "symbol": "FTB", + "family": "bitcoin", + "website": "https://fortuneblock.xyz/", + "market": "", + "github": "https://github.com/FortuneBlockTeam/fortuneblock", + "explorer": "https://explorer.fortuneblock.xyz/", + "twitter": "https://x.com/Fortune_Block", + "telegram": "", + "discord": "https://discord.com/invite/g4rwqYHkmd", + "coinbaseHasher": { + "hash": "sha256d" + }, + "headerHasher": { + "hash": "mike" + }, + "blockHasher": { + "hash": "reverse", + "args": [ + { + "hash": "sha256d" + } + ] + }, + "hasFounderFee": true, + "hasMasterNodes": true, + "hasSmartNodes": true, + "shareMultiplier": 65536, + "explorerBlockLink": "https://explorer.fortuneblock.xyz/block/$hash$", + "explorerTxLink": "https://explorer.fortuneblock.xyz/tx/{0}", + "explorerAccountLink": "https://explorer.fortuneblock.xyz/address/{0}" + }, "foxdcoin": { "name": "FoxDcoin", "canonicalName": "FoxDcoin",