File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -109,15 +109,15 @@ Database
109109
110110c-lightning state is persisted in ` lightning-dir ` .
111111It is a sqlite database stored in the ` lightningd.sqlite3 ` file, typically
112- under ` ~/.lightning ` .
112+ under ` ~/.lightning/<network>/ ` .
113113You 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
118118Or 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
136136Table ` 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
You can’t perform that action at this time.
0 commit comments