Bitcointalk · Version 0.3.12

中本聪,2010 年 9 月 7 日

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

阅读语言
中文译文

0.3.12 版现已发布。

特性: - json-rpc 错误返回更标准的错误对象。(感谢 Gavin Andresen) - json-rpc 命令行返回退出码。 - json-rpc "backupwallet" 命令。 - 倘若收到的消息引发异常,会恢复并继续。其他节点本不该能引发异常,以前亦从未发生过,然而倘若被发现某种引发异常的途径,这能防止它被用来搞停网络节点。

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

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

ORIGINAL · 英文原文
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/
上下文
← 上一条 SN-2716 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-2716