lnd.xprv/lnwallet
Olaoluwa Osuntokun affd7793b3
lnwallet: add htlc persistence, state log restoration to channel state machine
This commit adds full persistence logic of the current lowest
un-revoked height within each commitment chain. The newly added
channeldb methods for record state transitions within both commitment
chains are now utilized. This un-settled HTLC state is now read upon
initialization, with the proper log entries inserted into the state
update log which reflect the garbage collected log right before the
restart.

A new set of tests have been added to exercise a few edge cases around
HTLC persistence to ensure the in-memory log is properly restored based
on the on-disk snapshot.
2016-09-12 19:07:04 -07:00
..
btcwallet lnwallet: add a BtcWallet implementation of WalletController 2016-09-08 12:25:32 -07:00
channel_test.go lnwallet: add htlc persistence, state log restoration to channel state machine 2016-09-12 19:07:04 -07:00
channel.go lnwallet: add htlc persistence, state log restoration to channel state machine 2016-09-12 19:07:04 -07:00
config.go lnwallet: add a BtcWallet implementation of WalletController 2016-09-08 12:25:32 -07:00
interface_test.go lnwallet: eliminate flaky assert within integration tests 2016-09-08 13:10:51 -07:00
interface.go lnwallet: revamp interfaces, add BlockChainIO and Singer 2016-09-08 12:25:28 -07:00
log.go lnwallet: switch name of package logger to avoid module collision 2016-07-27 11:29:07 -07:00
reservation.go lnwallet: refactor all wallet/channel interaction to use the WalletController. 2016-09-08 12:25:54 -07:00
script_utils_test.go lnwallet: publicly export several functions within script_utils.go 2016-09-08 12:25:44 -07:00
script_utils.go channeldb: implement commitment state update log 2016-09-12 19:06:44 -07:00
wallet.go lnwallet: refactor all wallet/channel interaction to use the WalletController. 2016-09-08 12:25:54 -07:00