Fix old except(..) to THROW_ERROR_EXCEPTION(..)

bcn
Harald Wolff 2017-09-11 12:52:07 +02:00 committed by Harald Wolff
parent 594ecbaf33
commit 48ac60139f
1 changed files with 2 additions and 2 deletions

View File

@ -186,10 +186,10 @@ void construct_block_blob(const Nan::FunctionCallbackInfo<v8::Value>& info) {
block parent_block;
b.parent_block.nonce = nonce;
if (!construct_parent_block(b, parent_block))
return except("Failed to construct parent block");
return THROW_ERROR_EXCEPTION("Failed to construct parent block");
if (!mergeBlocks(parent_block, b, std::vector<crypto::hash>()))
return except("Failed to postprocess mining block");
return THROW_ERROR_EXCEPTION("Failed to postprocess mining block");
}
if (!block_to_blob(b, output))