Skip to content

回复:严重的溢出错误 ​

原始发布页

打开来源页面
查看 1 个交叉存档

不要更新区块链下载文件。拿取别人的区块链下载文件时,你不会希望它一直包含到链的最末端。稍旧一些的更好,这样它就可以下载并验证最新的区块。

tcatm 的 4 路 SSE2 SHA-256 位于 sha256.cpp 文件中,几个版本前就已经上传了。

我刚刚上传了 rev 134,其中的 makefile.unix 可以在 Linux 上启用带有该功能的构建。如果你现在在 Linux 上构建 rev 134,就会得到 -4way 开关。

如果你因此遇到构建问题,那么编辑 makefile.unix 并: - 删除 -DFOURWAYSSE2 - 从以下各行末尾删除 obj/sha256.o: bitcoin: $(OBJS) obj/ui.o obj/uibase.o obj/sha256.o bitcoind: $(OBJS:obj/%=obj/nogui/%) obj/sha256.o

我构建的 0.3.10 linux 版本会带有 -4way 选项。

以下是 Windows 的补丁下载地址:

http://www.bitcoin.org/download/bitcoin-0.3.10-win32-setup.exehttp://www.bitcoin.org/download/bitcoin-0.3.10-win32.zip

SHA1 校验和 16645ec5fcdb35bc54bc7195309a1a81105242bb bitcoin-0.3.10-win32-setup.exe SHA1 校验和 4f35ad7711a38fe8c880c6c9beab430824c426d3 bitcoin-0.3.10-win32.zip

步骤:

  1. 关闭程序。
  2. 下载 knightmb 的 blk 文件,并替换你的 blk0001.dat 和 blkindex.dat 文件。 http://knightmb.dyndns.org/files/bitcoin/blocks/http://rapidshare.com/files/413168038/BitcoinBlocks.torrent
  3. 升级到 0.3.10。
  4. 启动时区块数应该少于 74000,并重新下载其余部分。

或者,如果你不想折腾下载 blk 文件,可以直接这样做:

  1. 关闭程序。
  2. 删除(或移动)blk*.dat
  3. 升级到 0.3.10。
  4. 它会重新下载所有区块,大概需要一个小时。

英文原文 ​

展开英文原文

Don't update the block chain download. When you take someone's block chain download, you don't want it right up to the end. A somewhat old one is better so it can download and verify the most recent blocks.

tcatm's 4-way SSE2 SHA-256 is in the file sha256.cpp and already uploaded a few revs ago.

I just now uploaded rev 134 which is the makefile.unix that enables building with it on Linux. If you build rev 134 on Linux now you'll get the -4way switch.

If you have problems building because of it, then edit makefile.unix and: - remove -DFOURWAYSSE2 - remove obj/sha256.o from the end of these lines: bitcoin: $(OBJS) obj/ui.o obj/uibase.o obj/sha256.o bitcoind: $(OBJS:obj/%=obj/nogui/%) obj/sha256.o

The 0.3.10 linux build will have the -4way option when I build it.

Here are the patch downloads for Windows:

http://www.bitcoin.org/download/bitcoin-0.3.10-win32-setup.exehttp://www.bitcoin.org/download/bitcoin-0.3.10-win32.zip

SHA1 16645ec5fcdb35bc54bc7195309a1a81105242bb bitcoin-0.3.10-win32-setup.exe SHA1 4f35ad7711a38fe8c880c6c9beab430824c426d3 bitcoin-0.3.10-win32.zip

Steps:

  1. Shut down.
  2. Download knightmb's blk files and replace your blk0001.dat and blkindex.dat files. http://knightmb.dyndns.org/files/bitcoin/blocks/http://rapidshare.com/files/413168038/BitcoinBlocks.torrent
  3. Upgrade to 0.3.10.
  4. It should start out with less than 74000 blocks and redownload the rest.

Or if you don't want to mess with downloading blk files, you can just do this:

  1. Shut down.
  2. Delete (or move) blk*.dat
  3. Upgrade to 0.3.10.
  4. It redownloads all blocks, probably take about an hour.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。