From b12b8e0d33aa3b4d760f8f22afb3d0f46227c7cc Mon Sep 17 00:00:00 2001 From: Andrea Baccega Date: Thu, 6 Mar 2014 00:17:01 +0100 Subject: [PATCH] solution cannot be null in mpos database. --- libs/mposCompatibility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/mposCompatibility.js b/libs/mposCompatibility.js index 266e0cb..50d25bf 100644 --- a/libs/mposCompatibility.js +++ b/libs/mposCompatibility.js @@ -67,7 +67,7 @@ module.exports = function(logger, poolConfig){ isValidBlock ? 'Y' : 'N', shareData.difficulty, typeof(shareData.error) === 'undefined' ? null : shareData.error, - typeof(shareData.solution) === 'undefined' ? null : shareData.solution + typeof(shareData.solution) === 'undefined' ? '' : shareData.solution ]; connection.query( 'INSERT INTO `shares` SET time = NOW(), rem_host = ?, username = ?, our_result = ?, upstream_result = ?, difficulty = ?, reason = ?, solution = ?',