diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-06-11 15:10:18 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-06-11 15:36:48 +0100 |
| commit | 235df7f4848fb597739c50e3a31007ae77f008f1 (patch) | |
| tree | 4c441bb96f27a3fd7d148c0b854a7c1a72af906b /src/cryptonote_core/blockchain.cpp | |
| parent | e3da0ca8280d0a68a750ffe48b8bc432ce1b3d0e (diff) | |
| download | monzero-core-235df7f4848fb597739c50e3a31007ae77f008f1.tar.gz monzero-core-235df7f4848fb597739c50e3a31007ae77f008f1.tar.xz monzero-core-235df7f4848fb597739c50e3a31007ae77f008f1.zip | |
blockchain_db: add a txpool tx getter which returns existence
Avoids exception spam for the "nope, not found" case
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
| -rw-r--r-- | src/cryptonote_core/blockchain.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 6f2977c5b..745608b9f 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -4005,6 +4005,11 @@ txpool_tx_meta_t Blockchain::get_txpool_tx_meta(const crypto::hash& txid) const return m_db->get_txpool_tx_meta(txid); } +bool Blockchain::get_txpool_tx_blob(const crypto::hash& txid, cryptonote::blobdata &bd) const +{ + return m_db->get_txpool_tx_blob(txid, bd); +} + cryptonote::blobdata Blockchain::get_txpool_tx_blob(const crypto::hash& txid) const { return m_db->get_txpool_tx_blob(txid); |
