113 Commits (b557e7b0fcab9d025076439a34f1a645eab3caa3)

Author SHA1 Message Date
Rusty Russell 0a6e3d1e13 utils: remove tal_tmpctx altogether, use global. 7 years ago
ZmnSCPxj 61882ed9df pay: Add hook for triggering storage of payments. 7 years ago
Corné Plooy b857b2e843 Add assertions in various places to ensure tal_fmt doesn't receive NULL as argument for strings. 7 years ago
ZmnSCPxj 978e5c67d8 invoices: Remove persistent in-memory invoice structures. 7 years ago
ZmnSCPxj 9b4c6699f9 invoices: Semantically separate invoice details from invoice. 7 years ago
practicalswift 74841ef567 Remove unused parameter payment_hash in forward_htlc(..., const struct sha256 *payment_hash, ...) 7 years ago
practicalswift 91a9c2923f Mark intentionally unused parameters as such (with "UNUSED") 7 years ago
Rusty Russell 1192f16733 lightningd: fix crash when htlc failed and source is onchain. 7 years ago
Rusty Russell e92b710406 tools/generate-wire.py: remove length argument from fromwire_ routines. 7 years ago
Rusty Russell 36652a3df3 lightningd/peer_control: reorder, move more functions out. 7 years ago
Rusty Russell e0603d7221 channel: now we're always complete, fields don't have to be optional. 7 years ago
Rusty Russell 8db8c51201 lightningd: struct uncommitted_channel for opening channels. 7 years ago
Rusty Russell 8f7a19d1a3 onchain: handle case where multiple HTLCs exist for same payment_hash. 7 years ago
Rusty Russell 55d962046b Rename (almost) all destructors to destroy_<type>. 7 years ago
Rusty Russell 329e31bbe7 lightningd/peer_htlcs: remove remaining peer_ shims. 7 years ago
Rusty Russell cf7c399cc5 htlc: keep channel pointer, not peer pointer. 7 years ago
Rusty Russell 409fef582d subd: keep pointer to channel, not peer. 7 years ago
Rusty Russell b7680412e3 lightningd: rename peer_fail functions to channel_fail. 7 years ago
Rusty Russell 32411de90e lightningd: split struct peer into struct peer and struct channel. 7 years ago
Christian Decker 9f8f0ccec9 peer: Store htlc_sigs when they are updated 7 years ago
Rusty Russell 674a2c7554 tools/generate_wire.py: make bitcoin_tx a varlen structs 7 years ago
Rusty Russell 526d3a232e tools/generate_wire.py: generate varlen arrays properly. 7 years ago
Christian Decker 3fdb055606 wallet: Make first_blocknum a field of wallet_channel 7 years ago
Rusty Russell 9b8fe618f6 pay: remove cmd pointer from htlc_out. 7 years ago
ZmnSCPxj c46727604e peer_htlcs: Prevent htlc_out from being handled multiple times in case of immediate channeld error. 7 years ago
ZmnSCPxj bd5dd46c4f peer_htlcs: Add missing assignment to hout->failcode. 7 years ago
Rusty Russell 3ccf88d6c4 lightningd: check channeld isn't trying to add 0-satoshi incoming HTLCs. 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 0f8f273410 lightningd: move cmd pointer from struct pay_command directly into htlc_out. 7 years ago
ZmnSCPxj 93dc90990f invoices: Extensive reorganization of invoice system. 7 years ago
Rusty Russell 79dc44713b channeld: --ignore-fee-limits as a hack for fee disparities. 7 years ago
Christian Decker dd599706cd peer: Save whenever we change last_was_revoke as well 7 years ago
Rusty Russell 2f2fb0c2a1 invoice: add msatoshi_received field. 7 years ago
ZmnSCPxj 50471bf4fe invoice: Make msatoshi field nullable. 7 years ago
Rusty Russell 9a8eca4fee Remove obsolete FIXME messages. 7 years ago
Rusty Russell 55909a7a39 lightningd: call peer_last_tx() to update peer->last_tx before saving to db. 7 years ago
Rusty Russell 93c589efe8 wallet: save block height when we first create channel. 7 years ago
Rusty Russell ba22484901 lightningd: simplify permanent failure. 7 years ago
Rusty Russell 7e062fd637 onchaind: don't assert() when htlc fulfilled twice. 7 years ago
Rusty Russell 90a5ba043c htlc_out: initialize hout->key.id, in case we destroy it before setting. 7 years ago
Rusty Russell 3ed496e45b lightningd: free failed output htlcs. 7 years ago
Rusty Russell 2bed246e10 channeld: generate error messages instead of having master do it. 7 years ago
Rusty Russell ee8274b7a1 channeld: handle wrapping error messages messages. 7 years ago
Rusty Russell be35895847 lightningd: instead of malformed code, keep generic error code. 7 years ago
Rusty Russell 06d7c40c63 lightningd: make minimum feerate significantly lower. 7 years ago
Christian Decker 79443d6f94 htlc: Defer saving the outgoing payment until we store the HTLC 7 years ago
Rusty Russell 552e56d002 channeld: send update_fee messages. 7 years ago
Rusty Russell 062f18127d channeld: handle incoming feerate changes. 7 years ago
Rusty Russell ccf86a138a chaintopology: add notify_feerate_change() callback. 7 years ago