← Back to the archive
Bitcoin.onl > Archive > Bitcoin Forum > Re: Incompatible wallet format with latest bitcoin-git ?
AuthorTopic: Re: Incompatible wallet format with latest bitcoin-git ?
satoshiFounderSr. Member★★★★
Re: Incompatible wallet format with latest bitcoin-git ?
« on: November 30, 2010, 07:02:31 PM UTC »

What was this wallet used with?  An early accounts patch or git build?

It's while loading the wallet.  I assume it must be in this:

    else if (strType == "acentry")
    {
        string strAccount;
        ssKey >> strAccount;
        uint64 nNumber;
        ssKey >> nNumber;
        if (nNumber > nAccountingEntryNumber)
            nAccountingEntryNumber = nNumber;
    }

You could check that with this:

    else if (strType == "acentry")
    {
        string strAccount;
        assert(!ssKey.empty());
        ssKey >> strAccount;
        uint64 nNumber;
        if (ssKey.size() != 8 )
            printf("***** %s %d ", strAccount.c_str(), ssKey.size());
        assert(ssKey.empty() == false);
        ssKey >> nNumber;
        if (nNumber > nAccountingEntryNumber)
            nAccountingEntryNumber = nNumber;
    }


Was there an interim version of accounts on git at some point that had just ("acentry", "account") for the key?

If you have gdb, you could run it in gdb and do a backtrace.

gdb --args bitcoin ...
run
(wait for exception)
bt

Satoshi designed Bitcoin so you can hold it yourself. Start here →

KEEP THE ARCHIVE ONLINE

Tip in sats.

Bitcoin.onl is free to read. If the archive is useful to you, a tip helps keep it online. Thanks to readers who keep this online.

Lightning (preferred)faramber539@walletofsatoshi.com
On-chainbc1p7dk9n0uv9ryuv73a578zglgq6f2ml0sz9xgy9du9ms9z89evtuts7py4ak
© Bitcoin.onl · Home · Is quantum a threat? · Keep the archive online · Follow us on Bluesky and Nostr