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.