原始文献 / 论坛帖 / Version 0.3.12

Version 0.3.12

Bitcointalk · 2010-09-07 19:17:55 UTC

AuthorSatoshi Nakamoto
TitleVersion 0.3.12
Date2010-09-07 19:17:55 UTC
ForumBitcointalk · 原文

0.3.12 版本现已发布。

特性:
- json-rpc 错误返回更标准的错误对象。(感谢 Gavin Andresen)
- json-rpc 命令行返回退出码。
- json-rpc "backupwallet" 命令。
- 如果收到的消息引发异常,能恢复并继续。其他节点本不该能引发异常,之前也没发生过,但如果有人找到引发异常的办法,这能防止它被用来让网络节点停机。

如果你有检查错误字符串内容的 json-rpc 代码,需要改成期望形如 {"code":<number>,"message":<string>} 的错误对象,这是标准。看这个帖子:
http://bitcointalk.org/index.php?topic=969.0

下载:
http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.3.12/

英文原文

Version 0.3.12 is now available.

Features:
- json-rpc errors return a more standard error object. (thanks to Gavin Andresen)
- json-rpc command line returns exit codes.
- json-rpc "backupwallet" command.
- Recovers and continues if an exception is caused by a message you received.  Other nodes shouldn't be able to cause an exception, and it hasn't happened before, but if a way is found to cause an exception, this would keep it from being used to stop network nodes.

If you have json-rpc code that checks the contents of the error string, you need to change it to expect error objects of the form {"code":<number>,"message":<string>}, which is the standard.  See this thread:
http://bitcointalk.org/index.php?topic=969.0

Download:
http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.3.12/