BlockchainDB/LMDB/BDB: Extract DB txn functions for block add/remove

This commit is contained in:
warptangent
2016-02-08 08:32:19 -08:00
parent f47d5b0fe3
commit f3a6000094
5 changed files with 65 additions and 0 deletions
+15
View File
@@ -1831,6 +1831,21 @@ void BlockchainBDB::set_batch_transactions(bool batch_transactions)
LOG_PRINT_L3("batch transactions " << (m_batch_transactions ? "enabled" : "disabled"));
}
void BlockchainBDB::block_txn_start()
{
// TODO
}
void BlockchainBDB::block_txn_stop()
{
// TODO
}
void BlockchainBDB::block_txn_abort()
{
// TODO
}
uint64_t BlockchainBDB::add_block(const block& blk, const size_t& block_size, const difficulty_type& cumulative_difficulty, const uint64_t& coins_generated, const std::vector<transaction>& txs)
{
LOG_PRINT_L3("BlockchainBDB::" << __func__);