Rusty Russell
b9a03a08ef
wallet/Makefile: fix dependency line.
The .o files need regen, not the .c files!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
Christian Decker
bf613fa48a
postgres: Add postgres statement rewriting support
Signed-off-by: Christian Decker <decker.christian@gmail.com>
5 years ago
Christian Decker
e4ab98459c
wallet: Add tooling to extract SQL queries and generate driver info
This is the counterpart of the annotations we did in the last few commits. It
extracts queries, passes them through a driver-specific query rewriter and
dumps them into a driver-specific query-list, along with some metadata to
facilitate processing later on. The generated query list is then registered as
a `db_config` and will be loaded by the driver upon instantiation.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
6 years ago
Rusty Russell
c2e56fbb1b
wallet: fix Makefile to include correct dependencies.
It didn't depend on its own headers, it should also depend on
lightningd/lightningd.h.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
6 years ago
Rusty Russell
242a934b8c
wallet: add check-source to makefile.
And fix up resulting breakage.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Christian Decker
2680e6d9ff
wallet: Move txfilter into wallet
Transaction filters are strongly related to the wallet, this move just
makes it a bit more explicit.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
ZmnSCPxj
93dc90990f
invoices: Extensive reorganization of invoice system.
7 years ago
Rusty Russell
2931760b5b
wallet: move tests into test/ dir like other unit tests.
Trivial move, but makes it easy to add new ones.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Christian Decker
eb5ed961ed
wallet: Added loading of HTLCs from the database
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
Rusty Russell
739b163f8b
Makefiles: simplify dependencies.
Gather all binaries and objects and make the depend on external
requirements and common headers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
c6976cd947
shachain: always build 48 bit version.
No more special Makefile hacks required.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
a37c165cb9
common: move some files out of lightningd/
Basically all files shared by different daemons.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Christian Decker
8b7efd01d7
wallet: Created a simple persisted shachain unit-test
This exercises the create, read and update functionality of the
persisted shachain.
8 years ago
Christian Decker
938ab67a01
wallet: move can_spend to wallet.c and json_addfunds to walletrpc.c
8 years ago
Christian Decker
b4e4a744aa
walletrpc: Implemented the withdrawal flow
8 years ago
Christian Decker
e91aff210e
wallet: Add compile dependency on CCAN
8 years ago
Christian Decker
9882a9fb29
wallet: Start the wallet interface and link it into lightningd
The database is hidden behind the wallet interface, which has all the
wallet specific functionality. First up is the tracking of outputs.
8 years ago
Christian Decker
80436d06cb
wallet: Create and manage a sqlite3 database for the wallet
8 years ago