Skip to content

Commit

Permalink
Update Scala
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin1579 committed Dec 26, 2024
1 parent 222cbfa commit a064e67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/Miningcore/Blockchain/Cryptonote/CryptonoteConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ public static class EquilibriaConstants
public const decimal EquilibriaReserveRewardInitial = 0.75m;
}

public static class ScalaConstants
{
public const int ScalaBlobType = 14;
}

public static class ZephyrConstants
{
public const int BlobType = 13;
Expand Down
5 changes: 1 addition & 4 deletions src/Miningcore/Blockchain/Cryptonote/CryptonoteJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,7 @@ public void PrepareWorkerJob(CryptonoteWorkerJob workerJob, out string blob, out
Span<byte> blockHash = stackalloc byte[32];

// Not all Cryptonote coins are equal
if(blobType == ZephyrConstants.BlobType)
CryptonoteBindings.GetBlockId(blob, blockHash, blobType);

else if(blobType == EquilibriaConstants.EquilibriaBlobType)
if(blobType == ZephyrConstants.BlobType || blobType == EquilibriaConstants.EquilibriaBlobType || blobType == ScalaConstants.ScalaBlobType)
CryptonoteBindings.GetBlockId(blob, blockHash, blobType);

else
Expand Down

0 comments on commit a064e67

Please sign in to comment.