Bitcointalk · JSON-RPC password

中本聪,2010 年 7 月 22 日

SN-1438 已核对来源,附原文与上下文。

阅读语言
中文译文

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

在 RPC 相关的很多场景里,可以这样用 fprintf(stdout, 打印到控制台: #if defined(__WXMSW__) && wxUSE_GUI MyMessageBox("Warning: rpc password is blank, use -rpcpw= ", "Bitcoin", wxOK | wxICON_EXCLAMATION); #else fprintf(stdout, "Warning: rpc password is blank, use -rpcpw= "); #endif

ORIGINAL · 英文原文
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
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-1438