Re: A few thoughts... - Wallet location and socket fix

Illustration of a wallet file path spilling past its container, a shielded database cylinder, and two connected cards showing a bug icon leading to a checked, sealed envelope, on a dark blue background with a date badge in the corner.

Responding to Trammell’s concerns about data loss and wallet backup, Satoshi disclosed the wallet’s storage location and technology:

Quote from: Satoshi Nakamoto on January 16, 2009, 12:42:18 PM UTC

The files are in “%appdata%\Bitcoin”, that’s the directory to backup. The data is stored in a transactional database DBM, so it should be safe from loss if there’s a crash or power failure.

He noted that %appdata% was the per-user directory that modern programs like Firefox used for settings, even though Microsoft renamed it with every Windows release, and the resulting path was full of spaces and ran off the screen.

Regarding the unclean socket closure Trammell had reported:

Satoshi Nakamoto

Just now added code to the next release for that.

This brief exchange demonstrates Satoshi’s rapid development cycle in Bitcoin’s earliest days — Trammell reported a bug and Satoshi had already coded a fix by the time he replied. The DBM (Berkeley DB) database choice would later prove significant when a database lock limit issue caused a chain fork in March 2013.

Original external source

https://en.bitcoin.it/wiki/Source:Trammell/Nakamoto_emails
Published by Dustin Trammell in November 2013

Other external sources