Skip to content

回复:JSON-RPC 密码 ​

原始发布页

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

仍然需要知道 Linux 上最典型的设置文件格式是什么。有标准的文件扩展名吗?我从没见过使用 JSON 的设置文件,而且所有内容都必须放在引号里,看起来对人很不友好。我通常看到的似乎是这样: # 注释 setting=value

Boost 里有处理设置文件的东西吗?

当你把 bitcoind 当作客户端、从命令行发出命令时,能不能也让它从设置文件中获取密码?

加文指出,我忘了递增 CommandLineRPC 中的数字列,所以目前的 -rpcpw= 实现在命令行中遇到非字符串参数时无法正常工作。(JSON-RPC 没问题)仍在开发中。

英文原文 ​

展开英文原文

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.

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