115 Commits (847ce8b092acf829b07d16a9507f68d6fe4c94a3)

Author SHA1 Message Date
Rusty Russell 847ce8b092 state: move first state transition into peer.c 8 years ago
Rusty Russell dbd8e07924 broadcast_tx: make sure callers free tx if necessary. 8 years ago
Rusty Russell 7aa01b0e50 broadcast_tx: add optional failed callback. 8 years ago
Rusty Russell 4cbe9785a8 bitcoind_sendrawtx: don't share callback with retransmission case. 8 years ago
Christian Decker 1d3737055a sphinx: Integrate sphinx OR with lightningd 8 years ago
Rusty Russell e5994ad8c1 json_connect: don't return until we're in state normal. 8 years ago
Rusty Russell 5bcc9047b0 db: save error, return it when we commit transaction. 8 years ago
Rusty Russell 68632e6020 Use "msatoshi" not "msatoshis" everywhere. 8 years ago
Rusty Russell b47fbfead0 db: Always fail HTLC inside a transaction. 8 years ago
Rusty Russell 23049f09a9 db: Always fulfill HTLC inside a transaction. 8 years ago
Rusty Russell 1ed4dbde05 peer: add peer_fail helper. 8 years ago
Rusty Russell 42cf0ef543 peer: do logging before crypto is on. 8 years ago
Rusty Russell 012574790d pay: make interface idempotent. 8 years ago
Rusty Russell d4ddebd55a htlc: save fail message in HTLC. 8 years ago
Rusty Russell e7b003b499 daemon: handle feechange requests. 8 years ago
Rusty Russell 319c2ec5fc peer: keep addresses separately from peers. 8 years ago
Rusty Russell 5f368f1c95 peer: save/load results in database. 8 years ago
Rusty Russell be38d3f507 Minor cleanups: things found while debugging the database code. 8 years ago
Rusty Russell 0bb183e028 peer: split and expose new_peer function. 8 years ago
Rusty Russell ab2fac3714 peer: add flag to indicate whether we created anchor. 8 years ago
Rusty Russell 5f4b4525b3 peer: use signed values for order. 8 years ago
Rusty Russell 15e8bd5a45 peer: save minimum possible depth for anchor. 8 years ago
Rusty Russell 795601dfcf daemon: reconnect with timeout, try from both sides. 8 years ago
Rusty Russell 3866d7605c daemon: reconnect support. 8 years ago
Rusty Russell bb28bbd470 peer: always initialize commit_info commit number, other fields. 8 years ago
Rusty Russell ab38fd7542 peer: rename closing_onchain to onchain. 8 years ago
Rusty Russell e19d5751fe peer: remove commit_info's prev pointer. 8 years ago
Rusty Russell 23f9c7c209 permute_tx: don't save permutation map. 8 years ago
Rusty Russell dca6c8efc1 peer: don't use permutation map for their unilateral spends. 8 years ago
Rusty Russell 4319f3ac70 peer: explicitly store the previous revocation hash when sending new update. 8 years ago
Rusty Russell 2aaf0cb817 peer: remove unacked_changes and acked_changes queues. 8 years ago
Rusty Russell 7709eb9b4a protocol: use separate ack packet. 8 years ago
Rusty Russell ec3344ce6e daemon/output_to_htlc: routines to map outputs for HTLCs for a given commit_num. 8 years ago
Rusty Russell 7c2165f5b4 peer: save txid -> commit_num mapping. 8 years ago
Rusty Russell 9b2fd3a969 peer: record depth at which anchor tx is considered deep enough. 8 years ago
Rusty Russell 08f7ade80f peer.c, packets.c: make more functions static. 8 years ago
Rusty Russell 6615db32c0 packets.c: queue_pkt_* only creates and sends packets. 8 years ago
Rusty Russell abf4182ef5 peer: cache txid for commitment_tx. 8 years ago
Rusty Russell 1af3428c6c peer: keep a single HTLC map for all htlcs. 8 years ago
Rusty Russell 4b5ec85c25 daemon: keep enum htlc_state within struct htlc. 8 years ago
Rusty Russell 22976bdd32 daemon: use HTLC states. 8 years ago
Rusty Russell 2a03af4486 Misc minor cleanups. 9 years ago
Rusty Russell a613d8d1fb peer: make id a pointer, NULL until we know peer's ID. 9 years ago
Rusty Russell fbe15bdce2 peer: remove unused struct members. 9 years ago
Rusty Russell 69a8ea2ad9 daemon: pay command. 9 years ago
Rusty Russell 21a29d9b4d daemon: fix bug when we close two peers simulatneously. 9 years ago
Rusty Russell 31a5de644a daemon: route fulfill back. 9 years ago
Rusty Russell f994a44827 daemon/peer: keep our own node connection information. 9 years ago
Rusty Russell 37b269f53e daemon: link HTLCs together. 9 years ago
Rusty Russell cc4fc4b668 daemon: use htlc pointers everywhere. 9 years ago