aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-05-06 00:25:18 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-05-06 00:25:18 -0500
commit483e5cab5cf5cb8ad2c5aa278aa2476d0dd02004 (patch)
tree1c1b863de3427da5d9cabaef03cc5a836bddbf64 /src/cryptonote_core
parentMerge pull request #6471 (diff)
parentcryptonote: fix reuse of non default tx data when relaying (diff)
downloadmonero-483e5cab5cf5cb8ad2c5aa278aa2476d0dd02004.tar.xz
Merge pull request #6472
2efbd5f cryptonote: fix reuse of non default tx data when relaying (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 2ed71e513..c1f9927a9 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -1309,9 +1309,9 @@ namespace cryptonote
std::vector<crypto::hash> tx_hashes{};
tx_hashes.resize(tx_blobs.size());
- cryptonote::transaction tx{};
for (std::size_t i = 0; i < tx_blobs.size(); ++i)
{
+ cryptonote::transaction tx{};
if (!parse_and_validate_tx_from_blob(tx_blobs[i], tx, tx_hashes[i]))
{
LOG_ERROR("Failed to parse relayed transaction");