diff options
author | Lee Clagett <code@leeclagett.com> | 2020-08-19 00:25:34 -0400 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2020-08-19 00:36:06 -0400 |
commit | bdc6b10d621bacdc7fd4df0435cc89dea59c9131 (patch) | |
tree | 8fc2138bf8f88b55c895037c79e8087057425987 /src/rpc/daemon_handler.cpp | |
parent | Revert "Use domain-separated ChaCha20 for in-memory key encryption" (diff) | |
download | monero-bdc6b10d621bacdc7fd4df0435cc89dea59c9131.tar.xz |
Fix ZMQ pruned bulletproof transactions
Diffstat (limited to 'src/rpc/daemon_handler.cpp')
-rw-r--r-- | src/rpc/daemon_handler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rpc/daemon_handler.cpp b/src/rpc/daemon_handler.cpp index 0a26a4d5d..248c54afb 100644 --- a/src/rpc/daemon_handler.cpp +++ b/src/rpc/daemon_handler.cpp @@ -183,7 +183,11 @@ namespace rpc { bwt.transactions.emplace_back(); bwt.transactions.back().pruned = req.prune; - if (!parse_and_validate_tx_from_blob(blob.second, bwt.transactions.back())) + + const bool parsed = req.prune ? + parse_and_validate_tx_base_from_blob(blob.second, bwt.transactions.back()) : + parse_and_validate_tx_from_blob(blob.second, bwt.transactions.back()); + if (!parsed) { res.blocks.clear(); res.output_indices.clear(); |