回复:指定 -datadir 时遇到问题
原始发布页
打开来源页面查看 1 个交叉存档
我能够复现这个问题。数据库不喜欢相对路径。
“bitcoind -datadir=./subdir getinfo”可以对正在运行的守护进程正常工作,但尝试以“bitcoind -datadir=./subdir”启动守护进程时,就会出现那个异常。
我想我们应该先解析出完整路径,再把它传给数据库。
看来你是第一个使用相对路径配合 -datadir 的人。
英文原文
展开英文原文
It was able to reproduce this. The database doesn't like the relative path.
"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.
It looks like you were the first one to ever use -datadir with a relative path.