Skip to content

Commit

Permalink
Add FortuneBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin1579 committed Nov 24, 2024
1 parent 848da66 commit e44785b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Miningcore/Blockchain/Bitcoin/BitcoinJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,14 @@ public void Init(BlockTemplate blockTemplate, string jobId,
if(coin.HasMasterNodes)
{
masterNodeParameters = BlockTemplate.Extra.SafeExtensionDataAs<MasterNodeBlockTemplateExtra>();

if(coin.Symbol == "FTB")
{
if(masterNodeParameters.Extra?.ContainsKey("fortune") == true)
{
masterNodeParameters.Masternode = JToken.FromObject(masterNodeParameters.Extra["fortune"]);
}
}

if(coin.HasSmartNodes)
{
Expand Down
33 changes: 33 additions & 0 deletions src/Miningcore/coins.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e44785b

Please sign in to comment.