edouard
3cf6bcbb98
add spent_coins to bitcoind poller
2022-10-05 17:41:16 +02:00
edouard
94ee94edbd
Add blocktime and spent_at to coins table
...
Spent coins are coins where spent_txid and spent_at
are both not null.
2022-10-05 17:41:16 +02:00
Antoine Poinsot
c73e8a42dd
commands: add a new 'delspendtx' command
2022-10-01 14:05:27 +02:00
Antoine Poinsot
c6e004806a
commands: add a 'list_spend' command (and 'listspendtxs' RPC)
2022-10-01 13:33:08 +02:00
Antoine Poinsot
bafcadf398
db: interface to upsert a Spend PSBT and query it by txid
...
I initially wanted to have a bridge table between the 'coins' and
'spend_transactions' table as we do in revaultd. But let's not optimize
to early, we'll see if/when we need it.
2022-09-15 11:41:33 +02:00
Antoine Poinsot
46320d5fc0
db: an interface to query coins by their outpoints
2022-09-15 11:41:29 +02:00
Antoine Poinsot
0fd57db8a8
Use the descriptor newtype instead of the raw miniscript Descriptor type
2022-08-18 12:02:27 +02:00
Antoine Poinsot
99a9cbf0f8
poller: query derivation index by address from DB
2022-08-18 12:01:26 +02:00
Antoine Poinsot
3f17e9f0c3
database: change interface from update_der_index to increment_der_index
...
And take care of updating the (addr->index) mapping in the SQLite implementation.
2022-08-18 12:01:26 +02:00
Antoine Poinsot
e74ea4c2d3
sqlite: a table for a mapping from address to derivation index.
2022-08-18 12:01:25 +02:00
Antoine Poinsot
05b3af1b5a
database: interface and implementation for coins storage and update
2022-08-18 12:01:24 +02:00
Antoine Poinsot
726209cc0a
jsonrpc: add a 'stop' command
...
This also implements a simple JSONRPC server sanity check
And introduces a new tmp_dir() test utility, that i didn't have the courage to split from this commit
2022-08-17 19:39:57 +02:00
Antoine Poinsot
ea3595349d
Accept a custom database interface when starting the daemon
2022-08-17 19:39:55 +02:00
Antoine Poinsot
2609061a69
commands: implement getnewaddress
2022-08-06 10:53:47 +02:00
Antoine Poinsot
dd37255d7b
bitcoin: update our tip in the poller
...
This introduces the DB connection in the poller thread
2022-07-27 12:30:53 +02:00
Antoine Poinsot
b0196ab529
daemon: introduce an SQLite database
...
With a schema similar to revaultd, but a different interface.
2022-07-23 12:49:17 +02:00