aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.h
diff options
context:
space:
mode:
authorJim Posen <jimpo@coinbase.com>2017-12-11 16:58:25 -0800
committerJim Posen <jimpo@coinbase.com>2018-04-25 11:25:06 -0700
commitc88bcec93fa8b969e65b1fe7716bda429276bbd4 (patch)
tree22a669bfd8f9ff4c03d22da7b0bb677c5daeaf1b /src/txdb.h
parent0cb8303241db75b8a59234e4edcdc163d869443c (diff)
downloadbitcoin-c88bcec93fa8b969e65b1fe7716bda429276bbd4.tar.xz
[db] Migration for txindex data to new, separate database.
Diffstat (limited to 'src/txdb.h')
-rw-r--r--src/txdb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/txdb.h b/src/txdb.h
index b58158df0b..980e43b088 100644
--- a/src/txdb.h
+++ b/src/txdb.h
@@ -151,6 +151,10 @@ public:
/// Write block locator of the chain that the txindex is in sync with.
bool WriteBestBlock(const CBlockLocator& locator);
+
+ /// Migrate txindex data from the block tree DB, where it may be for older nodes that have not
+ /// been upgraded yet to the new database.
+ bool MigrateData(CBlockTreeDB& block_tree_db, const CBlockLocator& best_locator);
};
#endif // BITCOIN_TXDB_H