diff --git a/test/integration/tools/node.js b/test/integration/tools/node.js index 74aabc9c8077a2cfddf1d4db4fac9a32d0eab2dc..734f8ddd21fdfa4f8d517cb0095cb2113157e7a7 100644 --- a/test/integration/tools/node.js +++ b/test/integration/tools/node.js @@ -100,10 +100,12 @@ function Node (dbName, options) { BlockchainService.prove(block, sigFunc, difficulty, next); }, function (provenBlock, next){ - logger.debug(provenBlock.getRawSigned()); - post('/blockchain/block', { - "block": provenBlock.getRawSigned() - }, next); + if (provenBlock) { + logger.debug(provenBlock.getRawSigned()); + post('/blockchain/block', { + "block": provenBlock.getRawSigned() + }, next); + } } ], done); }