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/blockchain_db.h | |
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/blockchain_db.h')
-rw-r--r-- | src/blockchain_db/blockchain_db.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/blockchain_db/blockchain_db.h b/src/blockchain_db/blockchain_db.h index 4a140e5f6..31d5e2644 100644 --- a/src/blockchain_db/blockchain_db.h +++ b/src/blockchain_db/blockchain_db.h @@ -368,6 +368,10 @@ public: virtual void batch_stop() = 0; virtual void set_batch_transactions(bool) = 0; + virtual void block_txn_start() = 0; + virtual void block_txn_stop() = 0; + virtual void block_txn_abort() = 0; + // adds a block with the given metadata to the top of the blockchain, returns the new height // NOTE: subclass implementations of this (or the functions it calls) need // to handle undoing any partially-added blocks in the event of a failure. |