Skip to content

Commit

Permalink
LTC MimbleWimble Extension Block support
Browse files Browse the repository at this point in the history
  • Loading branch information
btclinux committed Dec 12, 2022
1 parent 1fe87fe commit c38f218
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/Miningcore/Blockchain/Bitcoin/BitcoinJobManagerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,18 @@ protected BitcoinJobManagerBase(
protected Network network;
protected IDestination poolAddressDestination;

protected virtual object[] GetBlockTemplateParams()
{
return new object[]
{
new
{
rules = new[] {"segwit"},
protected virtual object[] GetBlockTemplateParams() {
if (extraPoolConfig?.HasMimbleWimble == true) {
return new object[] {
new {
rules = new[] {"mweb", "segwit"},
}
};
}

return new object[] {
new {
rules = new[] {"segwit"},
}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ public class BitcoinPoolConfigExtra
/// Custom Arguments for getblocktemplate RPC
/// </summary>
public JToken GBTArgs { get; set; }

public bool HasMimbleWimble { get; set; } = false;
}

0 comments on commit c38f218

Please sign in to comment.