Skip to content
Snippets Groups Projects
Commit 7b79fbc2 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Refactoring: debugging logs

parent 1e954bd0
No related branches found
No related tags found
No related merge requests found
......@@ -13,16 +13,12 @@ module.exports = function makeBlockAndPost(theServer, extraProps) {
manualValues = _.extend(manualValues, extraProps);
}
return co(function *() {
logger.warn('!utProver?', !theServer._utProver)
if (!theServer._utProver) {
theServer._utProver = new BlockProver(theServer)
theServer._utGenerator = require('../../../app/modules/prover').ProverDependency.duniter.methods.blockGenerator(theServer, theServer._utProver)
}
logger.warn('proving...')
let proven = yield theServer._utGenerator.makeNextBlock(null, null, manualValues)
logger.warn('proven:', proven)
const block = yield postBlock(theServer)(proven);
logger.warn('posted:', block)
return block
});
};
......
......@@ -357,9 +357,7 @@ export class TestingServer {
async commit(options:any = null) {
logger.warn('committing...')
const raw = await commit(this.server)(options);
logger.warn('raw!', raw)
return JSON.parse(raw);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment