{
"subject": "Re: Incompatible wallet format with latest bitcoin-git ?",
"content": {
"format": "html",
"body": "<div class=\"post\">What was this wallet used with? An early accounts patch or git build?<br/><br/>It's while loading the wallet. I assume it must be in this:<br/><br/> else if (strType == \"acentry\")<br/> {<br/> string strAccount;<br/> ssKey >> strAccount;<br/> uint64 nNumber;<br/> ssKey >> nNumber;<br/> if (nNumber > nAccountingEntryNumber)<br/> nAccountingEntryNumber = nNumber;<br/> }<br/><br/>You could check that with this:<br/><br/> else if (strType == \"acentry\")<br/> {<br/> string strAccount;<br/> assert(!ssKey.empty());<br/> ssKey >> strAccount;<br/> uint64 nNumber;<br/> if (ssKey.size() != 8 )<br/> printf(\"***** %s %d\n\", strAccount.c_str(), ssKey.size());<br/> assert(ssKey.empty() == false);<br/> ssKey >> nNumber;<br/> if (nNumber > nAccountingEntryNumber)<br/> nAccountingEntryNumber = nNumber;<br/> }<br/><br/><br/>Was there an interim version of accounts on git at some point that had just (\"acentry\", \"account\") for the key?<br/><br/>If you have gdb, you could run it in gdb and do a backtrace. <br/><br/>gdb --args bitcoin ...<br/>run<br/>(wait for exception)<br/>bt<br/></div>"
},
"source": {
"name": "Bitcoin Forum",
"url": "https://bitcointalk.org/index.php?topic=2007.msg25799#msg25799"
},
"date": "2010-11-30T19:02:31Z"
}