core-lightning/onchaind
lisa neigut 087ab166b3 coins, fix: don't crash if the to_us amount is greater than our_msat
It's possible for our peer to publish a commitment tx that has already
updated our balance for an htlc before we've completed removing it from
our commitment tx (aka before we've updated our balance). This used to
crash, now we just update our balance (and the channel balance logs!)
and keep going.

If they've removed anything from our balance, we'll end up counting it
as chain_fees below. Not ideal but fine... probably.
2020-05-12 15:46:58 +09:30
..
test coin moves: actually record the blockheight for all chain moves 2020-05-12 15:46:58 +09:30
Makefile coin moves: record onchain movements after they've been resolved 2020-05-12 15:46:58 +09:30
onchain_types.h coin moves: record their attempted cheat (and our handling thereof) 2020-05-12 15:46:58 +09:30
onchain_wire.c onchaind: include htlc id in htlc_stub so we agree on what HTLC we're closing. 2018-10-23 16:55:35 +02:00
onchain_wire.csv coin moves: don't log coin moves in onchaind if we're replaying 2020-05-12 15:46:58 +09:30
onchain_wire.h onchaind: include htlc id in htlc_stub so we agree on what HTLC we're closing. 2018-10-23 16:55:35 +02:00
onchaind.c coins, fix: don't crash if the to_us amount is greater than our_msat 2020-05-12 15:46:58 +09:30