Bitcointalk · 0.3 almost ready -- please test the Mac version!

中本聪,2010 年 6 月 22 日

SN-0790 已核对来源,附原文与上下文。

阅读语言
中文译文

你比我发回复还快就自己搞明白了。

看起来 laszlo 构建的 Berkeley DB 带的 database/log.* 文件与我们的不兼容。.dat 文件没问题,它们的格式不应改变。所有数据都存在 .dat 文件里。你自己的所有数据都存在 wallet.dat 里。如果你当时等它重新下载区块链,你的缺失交易和生成记录就会随着区块链推进到那些交易被记录的位置而出现。

你把目录拷了过来、只排除 log.0000000002,那是最好的解法。现在应该没问题了。

database/log.* 文件只包含临时数据库数据。如果你上次是正常退出 bitcoin 的——不是被强杀或崩溃——那么 database/log.* 文件通常可以安全删除。它们只在这种情况有用:当数据库正处于一笔交易中途时计算机崩溃、或程序被杀或崩溃,它可以无数据丢失地恢复。

请尽量继续使用 v0.3,别退回 v0.2.10。

其他遇到这个问题的人:把 database\log.000000000* 文件挪到别处去。(如果之后一切正常,可以稍后删掉它们)

我不愿让安装程序去删除或移动那些文件。如果上一次运行是崩溃或被杀而停止的,那样做就是错的。

ORIGINAL · 英文原文
You figured it out faster than I could post a reply.   🙂

It looks like laszlo's build of Berkeley DB has database/log.* files that are not compatible with ours.  The .dat files are fine, their format shouldn't ever change.  All data is stored in the .dat files.  All your own data is stored in wallet.dat.  If you had waited for it to redownload the block chain, your missing transactions and generateds would have appeared as the block chain reached the point where those transactions were recorded.

When you copied the directory except log.0000000002, that's the best solution.  You should be good now.

The database/log.* files only contain temporary database data.  If you exited bitcoin normally the last time, not exited by forced terminating it or crashing, then the database/log.* files can normally be deleted safely.  They're only used so that if the database is in the middle of a transaction when the computer crashes or the program is killed or crashes, then it could recover without losing data.

Please keep running v0.3 if at all possible, don't go back to v0.2.10.

Anyone else who hits this problem, move the database\log.000000000* files somewhere else.  (if it works fine after that, you can delete them later)

I'm reluctant to make the installer delete or move those files.  If the previous run was stopped by crashing or killed, that would be the wrong thing to do.
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-0790