Added some debugging

This commit is contained in:
MoneroOcean
2018-03-25 10:10:42 +02:00
parent 62dc3d5b2f
commit 0943250d9d
2 changed files with 3 additions and 0 deletions

View File

@@ -486,6 +486,7 @@ namespace cryptonote
VARINT_FIELD(minor_version)
if (BLOCK_MAJOR_VERSION_2 != major_version && BLOCK_MAJOR_VERSION_3 != major_version)
{
printf("block_header: block version %u\n", major_version);
VARINT_FIELD(timestamp)
}
FIELD(prev_id)
@@ -507,6 +508,7 @@ namespace cryptonote
FIELDS(*static_cast<block_header *>(this))
if (BLOCK_MAJOR_VERSION_2 == major_version || BLOCK_MAJOR_VERSION_3 == major_version)
{
printf("block: block version %u\n", major_version);
auto sbb = make_serializable_bytecoin_block(*this, false, false);
FIELD_N("parent_block", sbb);
}

View File

@@ -511,6 +511,7 @@ namespace cryptonote
if (BLOCK_MAJOR_VERSION_2 == b.major_version || BLOCK_MAJOR_VERSION_3 == b.major_version)
{
printf("get_block_hash: block version %u\n", b.major_version);
blobdata parent_blob;
auto sbb = make_serializable_bytecoin_block(b, true, false);
if (!t_serializable_object_to_blob(sbb, parent_blob))