Fix old except(..) to THROW_ERROR_EXCEPTION(..)
parent
2bd97d53f6
commit
0b72986783
|
@ -245,10 +245,10 @@ void construct_block_blob_fa(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