15 Commits

Author SHA1 Message Date
pythcoiner
b824a6433c lianad add msg if wrong arg
Co-authored-by: Antoine Poinsot <darosior@protonmail.com>
2023-10-25 10:22:08 +02:00
Antoine Poinsot
77e46d5495
daemon: remove 'help' detection in command line arguments
This is superfluous and prevents using config files with "-h" in their
path.
2023-08-22 16:42:57 +02:00
Antoine Poinsot
d4da2bf6b4
daemon bin: try to detect '--help' or '-h'
It should fall into the "number of args isn't equal to 3" category
anyways, but it's a cheap way of trying to be more helpful.
2023-08-11 10:13:47 +02:00
Antoine Poinsot
01ce0f179d
daemon bin: more helpful error message on config file parsing error 2023-08-10 11:46:41 +02:00
Antoine Poinsot
222c8bba81
daemon bin: a more helpful error message on unknown arguments. 2023-08-10 11:43:47 +02:00
Antoine Poinsot
0306773cdc
daemon: log and exit 1 on startup error, don't panic 2022-12-08 14:59:50 +01:00
Antoine Poinsot
968a7d17a0
daemon: rename Minisafe to Liana 2022-11-17 17:10:22 +01:00
Antoine Poinsot
e510c0a30d
config: separate the Bitcoin and bitcoind-specifc settings 2022-08-17 19:39:56 +02:00
Antoine Poinsot
f365effacd
Accept a custom Bitcoin interface when starting the daemon
The Bitcoin interface was thought of as being generic, but a caller
couldn't use one different from bitcoind. Make it so they can, and fix
our trait and generics implementations.
2022-08-17 19:39:55 +02:00
Antoine Poinsot
0d55d6c455
jsonrpc: a simple JSONRPC2 server 2022-08-17 19:39:54 +02:00
Antoine Poinsot
6ff43fcd95
daemon: log the name of the current thread, too. 2022-08-17 19:39:51 +02:00
Antoine Poinsot
fd86cfccee
lib: introduce a daemon controller for the API
This also finalizes the shutdown implementation
2022-08-06 10:53:46 +02:00
edouard
0d79a31eb2 fix crate name: minisafe 2022-07-26 10:46:16 +02:00
Antoine Poinsot
989a2cf8fd
daemon: introduce the DaemonHandle, which for now only creates a datadir
This code was mainly taken and adapted from revaultd at commit
7cd856d5a345319cebc815aa61f3b66cebb48b86.
2022-07-23 12:49:16 +02:00
Antoine Poinsot
1b35196448
daemon: backbone and configuration parsing
Taken from revaultd at 7cd856d5a345319cebc815aa61f3b66cebb48b86. Credits
to the revaultd contributors.
2022-07-20 18:42:08 +02:00