bitcoin/bitcoin — pull request #1800 by luke-jr (2012-09-08 04:56:51+00:00)
Title: Bugfix: Initialize CWallet::nOrderPosNext on an empty wallet, and save it in db

Thanks @gmaxwell for finding these bugs!