diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2012-09-08 04:55:36 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-09-08 04:55:36 +0000 |
commit | da7b8c1260d91e3306eb18dd65633567cb31332f (patch) | |
tree | 1fad88d0c8f5bb0953887c268e9a5a55910931d8 /src/test/accounting_tests.cpp | |
parent | ddb709e9de1490afcfa1af045517d2228d5b864c (diff) |
Bugfix: Initialize CWallet::nOrderPosNext on an empty wallet, and save it in db
Diffstat (limited to 'src/test/accounting_tests.cpp')
-rw-r--r-- | src/test/accounting_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/accounting_tests.cpp b/src/test/accounting_tests.cpp index c474fd65c1..8ac657288b 100644 --- a/src/test/accounting_tests.cpp +++ b/src/test/accounting_tests.cpp @@ -60,7 +60,7 @@ BOOST_AUTO_TEST_CASE(acc_orderupgrade) ae.nTime = 1333333330; ae.strOtherAccount = "d"; - ae.nOrderPos = pwalletMain->nOrderPosNext++; + ae.nOrderPos = pwalletMain->IncOrderPosNext(); walletdb.WriteAccountingEntry(ae); GetResults(walletdb, results); |