435 Commits (93b72332bd31d664d1ffb75566c68c848208f6c0)

Author SHA1 Message Date
Rusty Russell 2aaf0cb817 peer: remove unacked_changes and acked_changes queues. 9 years ago
Rusty Russell 7709eb9b4a protocol: use separate ack packet. 9 years ago
Rusty Russell 5c9dfd5206 netaddr: routines to linearize/delinearize. 9 years ago
Rusty Russell ec3344ce6e daemon/output_to_htlc: routines to map outputs for HTLCs for a given commit_num. 9 years ago
Rusty Russell 7c2165f5b4 peer: save txid -> commit_num mapping. 9 years ago
Rusty Russell 9b2fd3a969 peer: record depth at which anchor tx is considered deep enough. 9 years ago
Rusty Russell 08f7ade80f peer.c, packets.c: make more functions static. 9 years ago
Rusty Russell 0bd12b4e97 daemon/packets.h: create from prototypes which were in state.h. 9 years ago
Rusty Russell 149fa341be packets.c: accept_pkt_* should do less state-mangling. 9 years ago
Rusty Russell 6615db32c0 packets.c: queue_pkt_* only creates and sends packets. 9 years ago
Rusty Russell abf4182ef5 peer: cache txid for commitment_tx. 9 years ago
Rusty Russell 7b2d6925a0 channel: assert htlc direction is correct. 9 years ago
Rusty Russell 1f99268633 commit_tx: expose wscript and scriptpubkey for to_us/to_them payments. 9 years ago
Rusty Russell d9e825bc2c create_commit_tx: use HTLC map, not cstate HTLC array. 9 years ago
Rusty Russell 0af04b0576 peer: use commit_tx's newly exposed witness script helpers. 9 years ago
Rusty Russell ef77cb8349 commit_tx: expose internals to give access to HTLC witness scripts. 9 years ago
Rusty Russell ca142a0b47 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> 9 years ago
Rusty Russell 440fec099b peer: expose HTLC state through RPC. 9 years ago
Rusty Russell 04fa3a71a9 peer: use peer->htlcs in JSON getpeers output, instead of cstate array. 9 years ago
Rusty Russell 0e78ccca56 daemon: don't allow manual fulfill command until both sides committed. 9 years ago
Rusty Russell 4963f277aa daemon/test: prepare for random-ordered htlcs, cleanup parsing. 9 years ago
Rusty Russell 1af3428c6c peer: keep a single HTLC map for all htlcs. 9 years ago
Rusty Russell 4b5ec85c25 daemon: keep enum htlc_state within struct htlc. 9 years ago
Rusty Russell 22976bdd32 daemon: use HTLC states. 9 years ago
Rusty Russell 60b4543899 peer: fix --port option. 9 years ago
Rusty Russell d0285416fb log: ability to log struct rval. 9 years ago
Rusty Russell 7b1187d446 check: make (successful) tests less noisy. 9 years ago
Rusty Russell 4563ff91e9 lightningd: don't create rpc socket & listening socket until topology known. 9 years ago
Rusty Russell 35f83841da chaintopology: make sure we have a tip before continuing. 9 years ago
Rusty Russell 441d598dca daemon: broadcast transaction when fulfilling onchain. 9 years ago
Rusty Russell 8345bff825 cryptopkt: revert ack split in authenticate_packet 9 years ago
Rusty Russell f00ee00fd8 peer: log unexpected packets properly. 9 years ago
Rusty Russell f086e44358 Fix check-source: reorder includes in alphabetical order. 9 years ago
Rusty Russell 6015cedee8 process_estimatefee: fix bad logic. 9 years ago
Rusty Russell 5472f73f9c cryptopkt: update to latest encryption BOLT. 9 years ago
Jacob ae52977e42 fixed whitespace 9 years ago
Jacob dc2d83bfbe Replace OpenSSL's RAND_bytes() with libsodium's randombytes_buf() 9 years ago
Jacob 4751522162 Changed openssl's RAND_bytes() to sodium's randombytes_buf() 9 years ago
Rusty Russell df4df8679d chaintopology: only report active chaintip. 9 years ago
Rusty Russell 364c2cd2c0 key_from_base58 / pubkey_from_privkey: don't support non-compressed keys. 9 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 7e6dc28f70 htlc: store which side created the HTLC. 9 years ago
Rusty Russell fbe15bdce2 peer: remove unused struct members. 9 years ago
Rusty Russell f2d835522c bitcoin: implement sig_valid. 9 years ago
Rusty Russell c649f62e43 libsecp256k1: update. 9 years ago
Rusty Russell 42bed80145 pubkey: don't carry around DER encoding. 9 years ago
Rusty Russell 69cb158edd base58, script, protobuf_convert: don't use temporary secp256k1 context. 9 years ago
Rusty Russell a35055c699 log: keep dstate pointer. 9 years ago
Rusty Russell 08a910b06e BOLT: fee requirements update. 9 years ago