forked from oliverw/miningcore
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mike Algo Fortune Reward
- Loading branch information
Showing
18 changed files
with
2,343 additions
and
414 deletions.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
src/Miningcore/Blockchain/Bitcoin/DaemonResponses/Fortune.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Linq; | ||
|
||
namespace Miningcore.Blockchain.Bitcoin.DaemonResponses | ||
{ | ||
public class Fortune | ||
{ | ||
public string Payee { get; set; } | ||
public string Script { get; set; } | ||
public long Amount { get; set; } | ||
} | ||
|
||
public class FortuneBlockTemplateExtra | ||
{ | ||
public JToken Fortune { get; set; } | ||
|
||
[JsonProperty("fortune_payments_started")] | ||
public bool FortunePaymentsStarted { get; set; } | ||
} | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Miningcore.Native; | ||
using static Miningcore.Native.Cryptonight.Algorithm; | ||
|
||
namespace Miningcore.Crypto.Hashing.Algorithms; | ||
|
||
[Identifier("mike")] | ||
public class Mike : IHashAlgorithm | ||
{ | ||
public void Digest(ReadOnlySpan<byte> data, Span<byte> result, params object[] extra) | ||
{ | ||
Cryptonight.CryptonightHash(data, result, GHOSTRIDER_MIKE, 0); | ||
} | ||
} |
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
Oops, something went wrong.