指定 -datadir 时遇到问题

中本聪SN-1694

我复现了这个问题。数据库不接受相对路径。

It was able to reproduce this. The database doesn't like the relative path.

"bitcoind -datadir=./subdir getinfo" 对着运行中的守护进程是好使的,但以 "bitcoind -datadir=./subdir" 启动守护进程就抛那个异常。

"bitcoind -datadir=./subdir getinfo" works against a running daemon, but trying to start the daemon as "bitcoind -datadir=./subdir" gets that exception.

我看应该在传给数据库之前把路径解析成完整路径。

I guess we should resolve the full path before passing it to the database.

看来你是第一个用相对路径 -datadir 的人。

It looks like you were the first one to ever use -datadir with a relative path.

译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:5d529335b1d2。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

Having problems specifing -datadir

Bitcointalk · 原始链接 ↗ 记录编号 SN-1694

阅读字号

选择适合你的字号,之后阅读会继续使用。