aboutsummaryrefslogtreecommitdiff
path: root/src/walletdb.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-09-08 04:55:36 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2012-09-08 04:55:36 +0000
commitda7b8c1260d91e3306eb18dd65633567cb31332f (patch)
tree1fad88d0c8f5bb0953887c268e9a5a55910931d8 /src/walletdb.cpp
parentddb709e9de1490afcfa1af045517d2228d5b864c (diff)
Bugfix: Initialize CWallet::nOrderPosNext on an empty wallet, and save it in db
Diffstat (limited to 'src/walletdb.cpp')
-rw-r--r--src/walletdb.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/walletdb.cpp b/src/walletdb.cpp
index 164b68e11f..0fac0109c8 100644
--- a/src/walletdb.cpp
+++ b/src/walletdb.cpp
@@ -392,6 +392,10 @@ int CWalletDB::LoadWallet(CWallet* pwallet)
return DB_CORRUPT;
}
}
+ else if (strType == "orderposnext")
+ {
+ ssValue >> pwallet->nOrderPosNext;
+ }
}
pcursor->close();
}