From a064e673e6035f7ab127b260c7e2913e2b7b83f3 Mon Sep 17 00:00:00 2001 From: Decho Kocharin Date: Thu, 26 Dec 2024 21:46:09 +0700 Subject: [PATCH] Update Scala --- src/Miningcore/Blockchain/Cryptonote/CryptonoteConstants.cs | 5 +++++ src/Miningcore/Blockchain/Cryptonote/CryptonoteJob.cs | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Miningcore/Blockchain/Cryptonote/CryptonoteConstants.cs b/src/Miningcore/Blockchain/Cryptonote/CryptonoteConstants.cs index 6a028362a..0c8af7ed8 100644 --- a/src/Miningcore/Blockchain/Cryptonote/CryptonoteConstants.cs +++ b/src/Miningcore/Blockchain/Cryptonote/CryptonoteConstants.cs @@ -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; diff --git a/src/Miningcore/Blockchain/Cryptonote/CryptonoteJob.cs b/src/Miningcore/Blockchain/Cryptonote/CryptonoteJob.cs index 1c01f7231..aa6bdf293 100644 --- a/src/Miningcore/Blockchain/Cryptonote/CryptonoteJob.cs +++ b/src/Miningcore/Blockchain/Cryptonote/CryptonoteJob.cs @@ -213,10 +213,7 @@ public void PrepareWorkerJob(CryptonoteWorkerJob workerJob, out string blob, out Span 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