200 Commits (727d115296ca5df79e600e5f020ca2fea3e0ad29)

Author SHA1 Message Date
Christian Decker 504202973f wallet: Add primitives to store blockchain internally 7 years ago
Igor Cota cb6820d445 Do preimage, hash and consequentially bolt11 generation before we store the invoice in db. 7 years ago
ZmnSCPxj 978e5c67d8 invoices: Remove persistent in-memory invoice structures. 7 years ago
ZmnSCPxj f05c86618c invoices: Change iteration interface to be more abstract. 7 years ago
ZmnSCPxj 9b4c6699f9 invoices: Semantically separate invoice details from invoice. 7 years ago
ZmnSCPxj f7f55edcdb wireaddr: Do hostname resolution in parse_wireaddr. 7 years ago
Rusty Russell 86a04c59d4 lightningd: maintain a status billboard for each channel. 7 years ago
practicalswift 7be95cee94 Remove unused parameter ctx in wallet_peer_load(const tal_t *ctx, ...) 7 years ago
Rusty Russell 097b9345eb wallet: load route_nodes and route_channels when seeking a particular entry. 7 years ago
practicalswift 4fccbbae69 Assert that we get the assumed return value from sqlite3_step(...) 7 years ago
Rusty Russell 611ecc60ae lightningd: rename peer_state -> channel_state, remove OPENINGD. 7 years ago
Rusty Russell cc460095ca lightningd: make new_channel a proper constructor. 7 years ago
Rusty Russell e0603d7221 channel: now we're always complete, fields don't have to be optional. 7 years ago
Rusty Russell 3c0be71d37 wallet: make static, not dynamic decision to insert for everything. 7 years ago
Rusty Russell 72108f0cb9 wallet: don't use rowid for the channel's DBID. 7 years ago
Christian Decker b2819f9f97 wallet: Add check that wallet matches the network on startup 7 years ago
Rusty Russell 37373f2c16 wallet: provide better comments on wallet_first_blocknum. 7 years ago
Rusty Russell ef9c6cb8c3 wallet: don't scan from worst-case start on first use. 7 years ago
Rusty Russell 6620305606 wallet: use last_processed_block to determine scan start. 7 years ago
Rusty Russell 55d962046b Rename (almost) all destructors to destroy_<type>. 7 years ago
Rusty Russell 6a3ccafaf9 wallet: don't implicitly remove peers, but do it explicitly. 7 years ago
Rusty Russell cf7c399cc5 htlc: keep channel pointer, not peer pointer. 7 years ago
Rusty Russell 32411de90e lightningd: split struct peer into struct peer and struct channel. 7 years ago
Rusty Russell 65c09c895d wallet: properly handle case where peer has no address when saving channel. 7 years ago
Rusty Russell 81ca1db347 wallet: delete peers with no channels. 7 years ago
Rusty Russell 38a313af0d wallet: delete channels in state OPENINGD. 7 years ago
Rusty Russell 15eaf56d79 wallet: add ld pointer. 7 years ago
Christian Decker 37b96e9c95 wallet: Load any stored htlc_sigs when restoring channel 7 years ago
Christian Decker 3bb619fee4 wallet: Add primitive to store htlc_sigs in the database 7 years ago
practicalswift 4f4756bd20 Fix a-vs-an typos 7 years ago
Christian Decker 4f5c47b43b wallet: Do not consider OPENINGD channels as active 7 years ago
Christian Decker 3fdb055606 wallet: Make first_blocknum a field of wallet_channel 7 years ago
ZmnSCPxj 1e6747c28e wallet: Pass in timers object during construction. 7 years ago
Rusty Russell 9b8fe618f6 pay: remove cmd pointer from htlc_out. 7 years ago
ZmnSCPxj 299b280f78 pay: Save nodes and channels used on route to payment. 7 years ago
Rusty Russell bab3b1a16b wallet: get first blocknum from any channels. 7 years ago
Rusty Russell 661950e402 wallet: fix logic for finding first block. 7 years ago
Christian Decker 9588c961bb wallet: Forget channels that are irrevocably settled on-chain 7 years ago
Rusty Russell 6e703ad977 JSONRPC: listpayments can list just a specific bolt11 or payment_hash. 7 years ago
ZmnSCPxj d2789fd647 wallet: Properly save `wallet_payment::path_secrets`. 7 years ago
practicalswift 5697332677 Avoid potential NULL pointer dereference in wallet_payment_store(...) 7 years ago
Rusty Russell b81129f87e wallet: fix case of failed payment not yet in db. 7 years ago
Rusty Russell 38e8601cf6 wallet: abstract away delayed entry of wallet_payment. 7 years ago
Rusty Russell 02e05ba6ff pay: remove struct pay_command. 7 years ago
Rusty Russell ae1d72b978 wallet: add routine to delete a payment. 7 years ago
Rusty Russell 0f8f273410 lightningd: move cmd pointer from struct pay_command directly into htlc_out. 7 years ago
Rusty Russell 559010f525 wallet: add path_secrets to payment table. 7 years ago
Rusty Russell 2cbe5b65c7 wallet: add preimage to db. 7 years ago
Björge Dijkstra d1b2a97146 Fix unitialized fields in htlc_out constructed from wallet database entry 7 years ago
Rusty Russell 3fbed24b0d wallet: remove direction column from payments table. 7 years ago