Additional fix for MSR
This commit is contained in:
@@ -235,7 +235,7 @@ namespace cryptonote
|
|||||||
};
|
};
|
||||||
|
|
||||||
inline
|
inline
|
||||||
transaction::transaction()
|
transaction::transaction() : blob_type(BLOB_TYPE_CRYPTONOTE)
|
||||||
{
|
{
|
||||||
set_null();
|
set_null();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ namespace cryptonote
|
|||||||
bool get_transaction_hash(const transaction& t, crypto::hash& res, size_t* blob_size)
|
bool get_transaction_hash(const transaction& t, crypto::hash& res, size_t* blob_size)
|
||||||
{
|
{
|
||||||
// v1 transactions hash the entire blob
|
// 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;
|
size_t ignored_blob_size, &blob_size_ref = blob_size ? *blob_size : ignored_blob_size;
|
||||||
return get_object_hash(t, res, blob_size_ref);
|
return get_object_hash(t, res, blob_size_ref);
|
||||||
|
|||||||
Reference in New Issue
Block a user