Dustin Trammell 通信

Satoshi 致 Dustin Trammell:回复几点想法——钱包位置和套接字修复(2009 年 1 月 16 日)

中本聪 · 2009 年 1 月 16 日

SN-10033 附来源、原文与上下文。

阅读语言
引用的来信Dustin D. Trammell来源 ↗

关于这个话题,我想到一点:如果系统故障,可能会丢失 BitCoin。程序似乎没有在其运行目录中保存任何数据,所以我猜它把数据保存在注册表和其他位置(我还没有打开 ProcessExplorer 自己检查)。因此,也许应该让程序能够把恢复所需的一切导出到一个文件中,便于备份到系统以外。

One thing that came to mind on this topic is the potential for BitCoin loss if you have a system failure. The application doesn't seem to store any data in the directory that it runs in, so I assume it's stored in the registry and other places (haven't cracked out ProcessExplorer yet to check myself), so it may be a good idea to have the application be able to export everything that it needs for recovery to a file that could be backed up off of the system.

文件位于“%appdata%\Bitcoin”,需要备份的就是这个目录。数据存储在事务型数据库 DBM 中,所以如果发生崩溃或断电,应该不会丢失。

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.

%appdata% 的访问权限按用户区分。大多数新程序,例如 Firefox,都把设置文件放在那里,尽管 Microsoft 每发布一个 Windows 版本就更改目录名,而且目录名里全是空格,长得超出了屏幕。

%appdata% is per-user access privilege. Most new programs like Firefox store their settings files there, despite the headwind of Microsoft changing the directory name with every Windows release and being full of spaces and so long it runs off the screen.

引用的来信Dustin D. Trammell来源 ↗

今天我还注意到,关闭程序时,它似乎没有正常关闭网络套接字(TCP RST 开始满天飞)。大概可以放进低优先级待办事项里(:

One other thing I noticed today is that if you close the application it doesn't appear to cleanly close it's network sockets (TCP RST's start flying). Probably an item for the low-priority todo list (:

刚刚已为下一个版本添加了解决这个问题的代码。

Just now added code to the next release for that.

Satoshi

Satoshi

来源

阅读字号

选择适合你的字号,之后阅读会继续使用。