JSON-RPC 密码

中本聪SN-1438
其他参与者原话gavinandresen原帖 ↗

TODO:如果没设 rpc.user/rpc.password,弹对话框或在 debug.log 里警告,说明如何设置。

TODO: dialog box or debug.log warning if no rpc.user/rpc.password is set, explaining how to set.

中本聪回应

在 RPC 相关的很多场景里,可以这样用 fprintf(stdout, 打印到控制台:

In many of the contexts of this RPC stuff, you can print to the console with fprintf(stdout, like this:

#if defined(__WXMSW__) && wxUSE_GUI

#if defined(__WXMSW__) && wxUSE_GUI

MyMessageBox("Warning: rpc password is blank, use -rpcpw=<password>

MyMessageBox("Warning: rpc password is blank, use -rpcpw=<password>

", "Bitcoin", wxOK | wxICON_EXCLAMATION);

", "Bitcoin", wxOK | wxICON_EXCLAMATION);

#else

#else

fprintf(stdout, "Warning: rpc password is blank, use -rpcpw=<password>

fprintf(stdout, "Warning: rpc password is blank, use -rpcpw=<password>

");

");

#endif

#endif

译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:dac4b77403b0。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

JSON-RPC password

Bitcointalk · 原始链接 ↗ 记录编号 SN-1438

阅读字号

选择适合你的字号,之后阅读会继续使用。