aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_converter/fake_core.h
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-03-22 10:57:18 -0700
committerwarptangent <warptangent@inbox.com>2015-03-22 15:45:36 -0700
commit4bedd68d2c058184333101e4d3a31856f6226cd4 (patch)
tree015b313092cec3288f5cf8483eafcbe04128732f /src/blockchain_converter/fake_core.h
parentAdd README for blockchain converter, importer, and exporter utilities (diff)
downloadmonero-4bedd68d2c058184333101e4d3a31856f6226cd4.tar.xz
Update Blockchain::get_db() to return reference instead of pointer
Where this method is used, a BlockchainDB object is always expected, so a pointer is unnecessary and less safe.
Diffstat (limited to 'src/blockchain_converter/fake_core.h')
-rw-r--r--src/blockchain_converter/fake_core.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blockchain_converter/fake_core.h b/src/blockchain_converter/fake_core.h
index aff249cd9..175cb4660 100644
--- a/src/blockchain_converter/fake_core.h
+++ b/src/blockchain_converter/fake_core.h
@@ -55,7 +55,7 @@ struct fake_core_lmdb
m_pool.init(path.string());
m_storage.init(path.string(), use_testnet, mdb_flags);
if (do_batch)
- m_storage.get_db()->set_batch_transactions(do_batch);
+ m_storage.get_db().set_batch_transactions(do_batch);
support_batch = true;
support_add_block = true;
}
@@ -71,17 +71,17 @@ struct fake_core_lmdb
, const std::vector<transaction>& txs
)
{
- return m_storage.get_db()->add_block(blk, block_size, cumulative_difficulty, coins_generated, txs);
+ return m_storage.get_db().add_block(blk, block_size, cumulative_difficulty, coins_generated, txs);
}
void batch_start()
{
- m_storage.get_db()->batch_start();
+ m_storage.get_db().batch_start();
}
void batch_stop()
{
- m_storage.get_db()->batch_stop();
+ m_storage.get_db().batch_stop();
}
};