警报系统的开发
原始发布页
打开来源页面查看 1 个交叉存档
我一直在编写警报系统。警报通过网络广播,并适用于一定范围的版本号。警报消息使用一把只有我持有的私钥签名。
节点可以通过两种方式响应警报: - 在状态栏上显示一条警告消息。 - 让 json-rpc 接口中处理资金的方法返回错误。
在发生溢出漏洞之类的问题或出现分叉、导致用户可能无法信任所收款项的情况下,警报应该能让旧版本在升级前基本保持安全。手动操作的用户在查看收到的款项时应该会注意到状态栏警告,而 json-rpc 安全模式会阻止自动化网站继续进行任何交易,直到它们完成升级。
警报期间会返回错误的 json-rpc 方法有: sendtoaddress getbalance getreceivedbyaddress getreceivedbylabel listreceivedbyaddress listreceivedbylabel
英文原文
展开英文原文
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