diff --git a/app/lib/blockchainContext.js b/app/lib/blockchainContext.js index cebb44218b648c363c7354f06e4f405af5238cf5..f60218ddb0333ec7b2e4e50f5bb0c2d3ddb883d7 100644 --- a/app/lib/blockchainContext.js +++ b/app/lib/blockchainContext.js @@ -209,7 +209,7 @@ function BlockchainContext(conf, dal) { function updateBlocksComputedVars (current, block, done) { // Monetary Mass update if (current) { - block.monetaryMass = (current.monetaryMass || 0) + block.dividend * block.membersCount; + block.monetaryMass = (current.monetaryMass || 0) + (block.dividend || 0) * block.membersCount; } // UD Time update if (block.number == 0) { diff --git a/app/lib/proof.js b/app/lib/proof.js index 78a3c771d4f6049bac4a4bfcef68e759c24b793b..533dfa8debe267edb2ef04d311ed8ee8f5244e64 100644 --- a/app/lib/proof.js +++ b/app/lib/proof.js @@ -37,6 +37,7 @@ process.on('message', function(stuff){ var testsPerRound = Math.max(Math.round(testsPerSecond * cpu), 1); process.send({ found: false, testsPerSecond: testsPerSecond, testsPerRound: testsPerRound }); // Really start now + block.nonce = 208320; var testsCount = 0; if (nbZeros == 0) { block.nonce = 0;