{ "subject": "Re: Incompatible wallet format with latest bitcoin-git ?", "content": { "format": "html", "body": "<div class=\"post\">What was this wallet used with? &nbsp;An early accounts patch or git build?<br/><br/>It's while loading the wallet. &nbsp;I assume it must be in this:<br/><br/>&nbsp;&nbsp; &nbsp;else if (strType == \"acentry\")<br/>&nbsp;&nbsp; &nbsp;{<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;string strAccount;<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;ssKey &gt;&gt; strAccount;<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;uint64 nNumber;<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;ssKey &gt;&gt; nNumber;<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (nNumber &gt; nAccountingEntryNumber)<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nAccountingEntryNumber = nNumber;<br/>&nbsp;&nbsp; &nbsp;}<br/><br/>You could check that with this:<br/><br/>&nbsp;&nbsp; &nbsp;else if (strType == \"acentry\")<br/>&nbsp;&nbsp; &nbsp;{<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;string strAccount;<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;assert(!ssKey.empty());<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;ssKey &gt;&gt; strAccount;<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;uint64 nNumber;<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (ssKey.size() != 8 )<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf(\"***** %s %d\n\", strAccount.c_str(), ssKey.size());<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;assert(ssKey.empty() == false);<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;ssKey &gt;&gt; nNumber;<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (nNumber &gt; nAccountingEntryNumber)<br/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nAccountingEntryNumber = nNumber;<br/>&nbsp;&nbsp; &nbsp;}<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" }
Inscription number 18,209,367
Genesis block 799,364
File type json
File size 2.98 KB
Creation date Jun 2,2024 1:9 am