Testing fix

This commit is contained in:
MoneroOcean
2018-03-25 14:19:21 +02:00
parent 2e39609205
commit 5fec0288a6
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -87,7 +87,7 @@ NAN_METHOD(convert_blob) {
//convert
block b = AUTO_VAL_INIT(b);
b.blob_type = blob_type;
//b.blob_type = blob_type;
if (!parse_and_validate_block_from_blob(input, b)) return THROW_ERROR_EXCEPTION("Failed to parse block");
if (b.major_version == BLOCK_MAJOR_VERSION_2 || b.major_version == BLOCK_MAJOR_VERSION_3) {
@@ -118,7 +118,7 @@ NAN_METHOD(get_block_id) {
}
block b = AUTO_VAL_INIT(b);
b.blob_type = blob_type;
//b.blob_type = blob_type;
if (!parse_and_validate_block_from_blob(input, b)) return THROW_ERROR_EXCEPTION("Failed to parse block");
crypto::hash block_id;
@@ -149,7 +149,7 @@ NAN_METHOD(construct_block_blob) {
}
block b = AUTO_VAL_INIT(b);
b.blob_type = blob_type;
//b.blob_type = blob_type;
if (!parse_and_validate_block_from_blob(block_template_blob, b)) return THROW_ERROR_EXCEPTION("Failed to parse block");
b.nonce = nonce;