test of logging for debug purposes - please ignore

This commit is contained in:
Some Random Crypto Guy
2024-07-11 15:24:46 +01:00
parent 5bc778a864
commit 28438c044c
3 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/haven-protocol-org/node-cryptoforknote-util.git"
"url": "https://github.com/somerandomcryptoguy/node-cryptoforknote-util.git"
},
"dependencies": {
"base58-native": "*",

View File

@@ -382,6 +382,7 @@ namespace cryptonote
{
std::stringstream ss;
ss << b_blob;
LOG_ERROR(ss.str());
binary_archive<false> ba(ss);
bool r = ::serialization::serialize(ba, b);
CHECK_AND_ASSERT_MES(r, false, "Failed to parse block from blob 1");

View File

@@ -145,7 +145,7 @@ NAN_METHOD(convert_blob) { // (parentBlockBuffer, cnBlobType)
block b = AUTO_VAL_INIT(b);
b.set_blob_type(blob_type);
if (!parse_and_validate_block_from_blob(input, b)) return THROW_ERROR_EXCEPTION("Failed to parse block 2");
if (!parse_and_validate_block_from_blob(input, b)) return THROW_ERROR_EXCEPTION("Failed to parse block 2 " + blob_type);
if (blob_type == BLOB_TYPE_FORKNOTE2) {
block parent_block;