handle x11 difficulty for mpos compatibility
This commit is contained in:
parent
da22dad482
commit
473322c72f
|
@ -66,9 +66,9 @@ module.exports = function(logger, poolConfig){
|
||||||
var dbData = [
|
var dbData = [
|
||||||
shareData.ip,
|
shareData.ip,
|
||||||
shareData.worker,
|
shareData.worker,
|
||||||
isValidShare ? 'Y' : 'N',
|
isValidShare ? 'Y' : 'N',
|
||||||
isValidBlock ? 'Y' : 'N',
|
isValidBlock ? 'Y' : 'N',
|
||||||
shareData.difficulty,
|
poolConfig.coin.algorithm === 'x11' ? shareData.difficulty * 256 : shareData.difficulty,
|
||||||
typeof(shareData.error) === 'undefined' ? null : shareData.error,
|
typeof(shareData.error) === 'undefined' ? null : shareData.error,
|
||||||
shareData.blockHash ? shareData.blockHash : (shareData.blockHashInvalid ? shareData.blockHashInvalid : '')
|
shareData.blockHash ? shareData.blockHash : (shareData.blockHashInvalid ? shareData.blockHashInvalid : '')
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue