lnd/lnwallet
Olaoluwa Osuntokun 7dea354711
lnwallet: properly handle HTLC settles in channel state-machine
We no longer track HTLC’s by their r-hash within the log into the
index, as we may have multiple HTLC’s that can be redeemed by the same
pre-image. Instead we now use a separate index which is keyed by a
log-index.

Additionally, the SettleHTLC method now also returns the index of the
HTLC being settled which allows the remote party to quickly locate the
HTLC within their log.

This commit also introduces a few trace/debug log messages which will
likely be pruned in the near future
2016-07-12 17:35:57 -07:00
..
channel_test.go lnwallet: properly handle HTLC settles in channel state-machine 2016-07-12 17:35:57 -07:00
channel.go lnwallet: properly handle HTLC settles in channel state-machine 2016-07-12 17:35:57 -07:00
coin_select.go multi: change all imports to roasbeef's forks 2016-05-15 17:22:37 +03:00
config.go multi: change all imports to roasbeef's forks 2016-05-15 17:22:37 +03:00
interface.go multi: change all imports to roasbeef's forks 2016-05-15 17:22:37 +03:00
log.go multi: change all imports to roasbeef's forks 2016-05-15 17:22:37 +03:00
reservation.go lnwallet: update reservation workflow to revoke keys 2016-06-30 12:02:51 -07:00
script_utils_test.go lnwallet: createCommitTx now a revocation key 2016-06-30 12:12:19 -07:00
script_utils.go lnwallet: properly handle HTLC settles in channel state-machine 2016-07-12 17:35:57 -07:00
setup.go multi: change all imports to roasbeef's forks 2016-05-15 17:22:37 +03:00
wallet_test.go lnwallet: finish initial draft of LightningChannel state machine 2016-07-05 17:02:03 -07:00
wallet.go lnwallet: keep commitments cold at all times, store sig instead 2016-07-05 16:55:47 -07:00