Skip to content

Commit bf1f768

Browse files
vasildcdecker
authored andcommitted
doc: fix the path to the sqlite database file
The sqlite database location has been changed in aab83e7. Changelog-None
1 parent 1fe8cd8 commit bf1f768

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/HACKING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ Database
109109

110110
c-lightning state is persisted in `lightning-dir`.
111111
It is a sqlite database stored in the `lightningd.sqlite3` file, typically
112-
under `~/.lightning`.
112+
under `~/.lightning/<network>/`.
113113
You can run queries against this file like so:
114114

115-
$ sqlite3 ~/.lightning/lightningd.sqlite3 \
115+
$ sqlite3 ~/.lightning/bitcoin/lightningd.sqlite3 \
116116
"SELECT HEX(prev_out_tx), prev_out_index, status FROM outputs"
117117

118118
Or you can launch into the sqlite3 repl and check things out from there:
119119

120-
$ sqlite3 ~/.lightning/lightningd.sqlite3
120+
$ sqlite3 ~/.lightning/bitcoin/lightningd.sqlite3
121121
SQLite version 3.21.0 2017-10-24 18:55:49
122122
Enter ".help" for usage hints.
123123
sqlite> .tables
@@ -135,7 +135,7 @@ as some queries may lock the database and cause crashes.
135135
#### Common variables
136136
Table `vars` contains global variables used by lightning node.
137137

138-
$ sqlite3 ~/.lightning/lightningd.sqlite3
138+
$ sqlite3 ~/.lightning/bitcoin/lightningd.sqlite3
139139
SQLite version 3.21.0 2017-10-24 18:55:49
140140
Enter ".help" for usage hints.
141141
sqlite> .headers on

0 commit comments

Comments
 (0)