lnd.xprv/htlcswitch
Olaoluwa Osuntokun 7ae436e30e
htlcswitch+test: send switch back error on lnwallet.ErrInsufficientBalance
This commit fixes a bug related to swallowing an error that should go
to the switch in the case of an insufficient balance error when
attempting to add a new HTLC to the channel state machine. In this
case, an error would never be returned back to the client/switch, and
the internal processing within the channelLink would loop forever,
attempting to add an HTLC that can’t be added due to insufficient
balance to state machine itself.

We fix this issue by only treating the lnwallet.ErrMaxHTLCNumber as the
only error that prompts adding an HTLC to the overflow queue rather
than sending the error directly back to the switch.
2017-09-25 16:10:20 -07:00
..
circuit.go lnwire+htlcswitch: minor grammatical, formatting fixes after error PR 2017-07-14 20:08:37 -07:00
failure.go lnwire+htlcswitch: minor grammatical, formatting fixes after error PR 2017-07-14 20:08:37 -07:00
interfaces.go Htlcswitch: switch all accounting and forwarding decisions to use mSAT's 2017-08-22 00:53:04 -07:00
iterator.go htlcswitch: if we fail to parse and onion error, return the proper lnwire.FailCode 2017-09-12 18:10:40 +02:00
link_test.go htlcswitch: add new TestChannelLinkBandwidthConsistencyOverflow test 2017-09-25 13:01:34 -07:00
link.go htlcswitch+test: send switch back error on lnwallet.ErrInsufficientBalance 2017-09-25 16:10:20 -07:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
mock.go multi: txscript.WitnessScript -> txscript.WitnessSignature 2017-08-24 18:55:32 -07:00
packet.go Htlcswitch: switch all accounting and forwarding decisions to use mSAT's 2017-08-22 00:53:04 -07:00
queue_test.go htlcswitch: ensure the packetQueue can handle total+partial commitment overflows 2017-09-25 12:47:34 -07:00
queue.go htlcswitch: fix possible deadlock bug in packetQueue 2017-09-25 15:59:31 -07:00
switch_test.go htlcswitch: fix minor typos in switch test file 2017-09-22 15:54:43 -07:00
switch.go htlcswitch+test: send switch back error on lnwallet.ErrInsufficientBalance 2017-09-25 16:10:20 -07:00
test_utils.go htlcswitch: properly populate CommitFee for channels created in tests 2017-09-25 11:07:33 -07:00