Fix old except(..) to THROW_ERROR_EXCEPTION(..)
parent
594ecbaf33
commit
48ac60139f
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue