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