diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-12-05 20:34:10 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-12-05 21:13:29 +0000 |
commit | d1efe3d91c4b1bbb8178a67b445733f5560df1bb (patch) | |
tree | 76356fe3a75f20375e7eccb112c5073698091f8c /src/cryptonote_basic/cryptonote_format_utils.cpp | |
parent | db_lmdb: avoid pointless division (diff) | |
download | monero-d1efe3d91c4b1bbb8178a67b445733f5560df1bb.tar.xz |
cryptonote: set tx hash on newly parsed txes when known
Diffstat (limited to 'src/cryptonote_basic/cryptonote_format_utils.cpp')
-rw-r--r-- | src/cryptonote_basic/cryptonote_format_utils.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_basic/cryptonote_format_utils.cpp b/src/cryptonote_basic/cryptonote_format_utils.cpp index d41bc1087..ea420e046 100644 --- a/src/cryptonote_basic/cryptonote_format_utils.cpp +++ b/src/cryptonote_basic/cryptonote_format_utils.cpp @@ -184,6 +184,7 @@ namespace cryptonote CHECK_AND_ASSERT_MES(r, false, "Failed to parse transaction from blob"); CHECK_AND_ASSERT_MES(expand_transaction_1(tx, false), false, "Failed to expand transaction data"); tx.invalidate_hashes(); + tx.set_blob_size(tx_blob.size()); return true; } //--------------------------------------------------------------- |