原始文献 / 论坛帖 / Re: JSON-RPC password

Re: JSON-RPC password

Bitcointalk · 2010-07-21 00:05:20 UTC

AuthorSatoshi Nakamoto
TitleRe: JSON-RPC password
Date2010-07-21 00:05:20 UTC
ForumBitcointalk · 原文

还是得知道 Linux 上最典型的设置文件格式是什么。有标准的文件扩展名吗?我从没见过用 JSON 的设置文件,而且所有东西都要加引号,看起来对人不友好。我平时见的一般是这样:
# comment
setting=value

Boost 里有设置文件相关的东西吗?

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

Gavin 指出我忘了在 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.