lightninglabs / chantools

A loose collection of tools all somehow related to lnd and Lightning Network channels.
MIT License
222 stars 32 forks source link

Incorrect handling of loop_db_path on recoverloopin #68

Closed darbon closed 1 year ago

darbon commented 1 year ago

When using the recoverloopin command, the handling of loop_db_path is wrong, on one hand it takes the directory of the loop.db, not the path to loop.db itself (see https://github.com/lightninglabs/loop/blob/7f19c430473394fb5a5e2155aa6ccc90f2696a4a/loopdb/store.go#L189). Also, when not adding the option to the initial command line chantools won't ask for the path, but fail with: "mkdir : no such file or directory".

guggero commented 1 year ago

Thanks for the feedback, I fixed this in 20a684d.