From 9a4c27c242b4652056ce5b8731d83bc2926df1cf Mon Sep 17 00:00:00 2001
From: Michael Polzer <>
Date: Thu, 24 May 2018 18:00:16 +0300
Subject: [PATCH] [MySQL] Only write valid block hashes into the solution

---
 src/CoiniumServ/Persistance/Layers/Mpos/MposStorage.Shares.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CoiniumServ/Persistance/Layers/Mpos/MposStorage.Shares.cs b/src/CoiniumServ/Persistance/Layers/Mpos/MposStorage.Shares.cs
index e064473a2..382810ec3 100644
--- a/src/CoiniumServ/Persistance/Layers/Mpos/MposStorage.Shares.cs
+++ b/src/CoiniumServ/Persistance/Layers/Mpos/MposStorage.Shares.cs
@@ -1,4 +1,4 @@
-#region License
+#region License
 // 
 //     MIT License
 //
@@ -70,7 +70,7 @@ public void AddShare(IShare share)
                             our_result = ourResult,
                             upstream_result = upstreamResult,
                             reason = errorReason,
-                            solution = share.BlockHash.ToHexString(),
+                            solution = share.IsBlockCandidate ? share.BlockHash.ToHexString() : "",
                             difficulty = share.Difficulty, // should we consider mpos difficulty multiplier here?
                             time = DateTime.Now
                         });