Bitcointalk · JSON-RPC password

中本聪,2010 年 7 月 21 日

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

阅读语言
中文译文

还是想知道 Linux 上最典型的设置文件格式。有标准扩展名吗?我从没见过用 JSON 的设置文件,而且所有东西都得加引号,看起来也不太人性化。我平时见到的多半类似: # comment setting=value

Boost 里有设置文件方面的东西吗?

用 bitcoind 从命令行当客户端发命令时,能不能也让它从设置文件读密码?

Gavin 指出我忘了在 CommandLineRPC 里给数字列做递增,所以现在的 -rpcpw= 实现在命令行上带非字符串参数时不能正常工作。(JSON-RPC 没问题)仍在建设中。

ORIGINAL · 英文原文
Still need to know what's the most typical settings file format on Linux.  Is there a standard file extension?  I've never seen a settings file using JSON, and it doesn't look very human friendly with everything required to be in quotes.  I think what I usually see is like:
# comment
setting=value

Is there a settings file thing in Boost?

When you're using bitcoind to issue commands from the command line as a client, can we have it get the password from the settings file then too?

Gavin pointed out I forgot to increment the column of numbers in CommandLineRPC, so the current -rpcpw= implementation doesn't work right from the command line with non-string parameters.  (JSON-RPC is fine)  Still under construction.
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-1427