Skip to content

回复:JSON-RPC 密码 ​

原始发布页

打开来源页面
查看 1 个交叉存档

引用 gavinandresen 于 2010 年 7 月 22 日 01:11:26 AM 的发言

TODO:如果未设置 rpc.user/rpc.password,则显示对话框或在 debug.log 中发出警告,并说明如何设置。

在这个 RPC 相关功能的许多上下文中,你可以像这样用 fprintf(stdout 向控制台输出: #if defined(__WXMSW__) && wxUSE_GUI MyMessageBox("Warning: rpc password is blank, use -rpcpw=<password> ", "Bitcoin", wxOK | wxICON_EXCLAMATION); #else fprintf(stdout, "Warning: rpc password is blank, use -rpcpw=<password> "); #endif

英文原文 ​

展开英文原文

Quote from: gavinandresen on July 22, 2010, 01:11:26 AM

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

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 MyMessageBox("Warning: rpc password is blank, use -rpcpw=<password> ", "Bitcoin", wxOK | wxICON_EXCLAMATION); #else fprintf(stdout, "Warning: rpc password is blank, use -rpcpw=<password> "); #endif

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。