Additional fix for MSR

This commit is contained in:
MoneroOcean
2018-05-03 07:31:41 +02:00
parent c8e70b8399
commit eef5da0522
2 changed files with 2 additions and 2 deletions

View File

@@ -235,7 +235,7 @@ namespace cryptonote
};
inline
transaction::transaction()
transaction::transaction() : blob_type(BLOB_TYPE_CRYPTONOTE)
{
set_null();
}

View File

@@ -369,7 +369,7 @@ namespace cryptonote
bool get_transaction_hash(const transaction& t, crypto::hash& res, size_t* blob_size)
{
// v1 transactions hash the entire blob
if (t.version == 1)
if (t.version == 1 && t.blob_type != BLOB_TYPE_CRYPTONOTE2)
{
size_t ignored_blob_size, &blob_size_ref = blob_size ? *blob_size : ignored_blob_size;
return get_object_hash(t, res, blob_size_ref);