Version check fix

This commit is contained in:
MoneroOcean
2018-03-25 01:09:57 +01:00
parent 96995e4643
commit 090ea9534c

View File

@@ -507,7 +507,7 @@ namespace cryptonote
BEGIN_SERIALIZE_OBJECT()
FIELDS(*static_cast<block_header *>(this))
if (BLOCK_MAJOR_VERSION_2 <= major_version)
if (BLOCK_MAJOR_VERSION_2 == major_version || BLOCK_MAJOR_VERSION_3 == major_version)
{
puts("[7");
auto sbb = make_serializable_bytecoin_block(*this, false, false);