diff options
author | warptangent <warptangent@tutanota.com> | 2016-02-08 08:32:19 -0800 |
---|---|---|
committer | warptangent <warptangent@tutanota.com> | 2016-02-08 09:28:14 -0800 |
commit | f3a60000946c86a42abbac3b8c4d9e6865b9cefb (patch) | |
tree | 49e5d37698726b59973585c8cf691979f23a7977 /src/blockchain_db/berkeleydb/db_bdb.cpp | |
parent | BlockchainLMDB: Allow two HardFork functions to update DB during block add (diff) | |
download | monero-f3a60000946c86a42abbac3b8c4d9e6865b9cefb.tar.xz |
BlockchainDB/LMDB/BDB: Extract DB txn functions for block add/remove
Diffstat (limited to 'src/blockchain_db/berkeleydb/db_bdb.cpp')
-rw-r--r-- | src/blockchain_db/berkeleydb/db_bdb.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/blockchain_db/berkeleydb/db_bdb.cpp b/src/blockchain_db/berkeleydb/db_bdb.cpp index 2c18ae5df..f572ddf9d 100644 --- a/src/blockchain_db/berkeleydb/db_bdb.cpp +++ b/src/blockchain_db/berkeleydb/db_bdb.cpp @@ -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__); |