solution cannot be null in mpos database.

This commit is contained in:
Andrea Baccega 2014-03-06 00:17:01 +01:00
parent 6e91351af2
commit b12b8e0d33
1 changed files with 1 additions and 1 deletions

View File

@ -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 = ?',