aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorPatrick Strateman <patrick.strateman@gmail.com>2016-09-09 19:21:44 -0700
committerPatrick Strateman <patrick.strateman@gmail.com>2016-09-15 06:52:15 -0700
commitd2e678d7d220e2f430c2cb4bde559acee00c8c7c (patch)
tree23bf275b725f77657292e7a8a281e4c49b2a6378 /src/wallet/wallet.cpp
parent59adc86680911a83dcccf5b23db299a370fc92f2 (diff)
Add CWallet::ReorderTransactions and use in accounting_tests.cpp
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 7b55111673..fe9671926a 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -649,6 +649,12 @@ bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase)
return true;
}
+DBErrors CWallet::ReorderTransactions()
+{
+ CWalletDB walletdb(strWalletFile);
+ return walletdb.ReorderTransactions(this);
+}
+
int64_t CWallet::IncOrderPosNext(CWalletDB *pwalletdb)
{
AssertLockHeld(cs_wallet); // nOrderPosNext