Bitcointalk

JSON-RPC password

中本聪 · 2010 年 7 月 22 日

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=

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

", "Bitcoin", wxOK | wxICON_EXCLAMATION);

", "Bitcoin", wxOK | wxICON_EXCLAMATION);

#else

#else

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

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

");

");

#endif

#endif

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

阅读字号

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