aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-17 17:34:01 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-17 17:39:05 +0000
commit37cccb8cfb5bce18d210febd30ce5bef6143acc3 (patch)
tree74c78c8d43324b532a0e095ccf973593e6e3c2a6 /src
parentMerge pull request #5990 (diff)
downloadmonero-37cccb8cfb5bce18d210febd30ce5bef6143acc3.tar.xz
db_lmdb: an empty prunable data record means the tx is not pruned
as opposed to an absent record
Diffstat (limited to 'src')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index 8e2b5bebf..f978ef307 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -2994,8 +2994,6 @@ bool BlockchainLMDB::get_tx_blob(const crypto::hash& h, cryptonote::blobdata &bd
return false;
else if (get_result)
throw0(DB_ERROR(lmdb_error("DB error attempting to fetch tx from hash", get_result).c_str()));
- else if (result1.mv_size == 0)
- return false;
bd.assign(reinterpret_cast<char*>(result0.mv_data), result0.mv_size);
bd.append(reinterpret_cast<char*>(result1.mv_data), result1.mv_size);