Bitcointalk · Development of alert system

中本聪,2010 年 8 月 22 日

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

阅读语言
中文译文

我一直在写警报系统。警报通过网络广播,作用于一个版本号区间。警报消息用私钥签名,私钥只有我有。

节点可以对警报做两件事: - 在状态栏显示警告消息。 - 让 json-rpc 接口的资金处理方法返回错误。

在诸如溢出 bug 或分叉这类用户可能无法信任所收支付的情形下,警报应该能让旧版本在升级前基本安全。手动用户在查看收款时会注意到状态栏警告,而 json-rpc 安全模式会阻止自动化网站在升级前继续交易。

警报期间返回错误的 json-rpc 方法是: sendtoaddress getbalance getreceivedbyaddress getreceivedbylabel listreceivedbyaddress listreceivedbylabel

ORIGINAL · 英文原文
I've been working on writing the alert system.  Alerts are broadcast through the network and apply to a range of version numbers.  Alert messages are signed with a private key that only I have.

Nodes can do two things in response to an alert:
- Put a warning message on the status bar.
- Make the money handling methods of the json-rpc interface return an error.

In cases like the overflow bug or a fork where users may not be able to trust received payments, the alert should keep old versions mostly safe until they upgrade.  Manual users should notice the status bar warning when looking for received payments, and the json-rpc safe mode stops automated websites from making any more trades until they're upgraded.

The json-rpc methods that return errors during an alert are:
sendtoaddress
getbalance
getreceivedbyaddress
getreceivedbylabel
listreceivedbyaddress
listreceivedbylabel

上下文
← 上一条 SN-2561 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-2561