aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.h
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2017-04-25 11:29:46 -0700
committerPieter Wuille <[email protected]>2017-06-01 13:15:24 -0700
commit8b25d2c0ce64d7f8577a0c2e601e505c9f1140bf (patch)
treef0e2511a6e0aebf0012c209f54574b649651d3b2 /src/txdb.h
parentReduce reserved memory space for flushing (diff)
downloaddiscoin-8b25d2c0ce64d7f8577a0c2e601e505c9f1140bf.tar.xz
discoin-8b25d2c0ce64d7f8577a0c2e601e505c9f1140bf.zip
Upgrade from per-tx database to per-txout
Diffstat (limited to 'src/txdb.h')
-rw-r--r--src/txdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/txdb.h b/src/txdb.h
index 189094737..51dc355bb 100644
--- a/src/txdb.h
+++ b/src/txdb.h
@@ -77,6 +77,8 @@ public:
bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) override;
CCoinsViewCursor *Cursor() const override;
+ //! Attempt to update from an older database format. Returns whether an error occurred.
+ bool Upgrade();
size_t EstimateSize() const override;
};