Skip to content

Commit

Permalink
Update BitcoinJob.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin1579 committed Nov 25, 2024
1 parent 491e5ff commit 7a8ce0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Miningcore/Blockchain/Bitcoin/BitcoinJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ public void Init(BlockTemplate blockTemplate, string jobId,
developerParameters = BlockTemplate.Extra.SafeExtensionDataAs<DeveloperBlockTemplateExtra>();

if (coin.HasFounderFee)
{
{
founderParameters = BlockTemplate.Extra.SafeExtensionDataAs<FounderBlockTemplateExtra>();

if(coin.Symbol == "FTB")
Expand All @@ -960,18 +960,18 @@ public void Init(BlockTemplate blockTemplate, string jobId,
founderParameters.Founder = JToken.FromObject(founderParameters.Extra["devfee"]);
}
}
}
}

if (coin.HasMinerDevFund)
minerDevFundParameters = BlockTemplate.Extra.SafeExtensionDataAs<MinerDevFundTemplateExtra>("coinbasetxn", "minerdevfund");

if (coin.HasMinerFund)
minerFundParameters = BlockTemplate.Extra.SafeExtensionDataAs<MinerFundTemplateExtra>("coinbasetxn", "minerfund");

if(coin.HasCoinbaseDevReward)
if (coin.HasCoinbaseDevReward)
CoinbaseDevRewardParams = BlockTemplate.Extra.SafeExtensionDataAs<CoinbaseDevRewardTemplateExtra>();

if(coin.HasFoundation)
if (coin.HasFoundation)
foundationParameters = BlockTemplate.Extra.SafeExtensionDataAs<FoundationBlockTemplateExtra>();

this.coinbaseHasher = coinbaseHasher;
Expand Down

0 comments on commit 7a8ce0e

Please sign in to comment.