lnd.xprv/htlcswitch
Olaoluwa Osuntokun 62473009b5
htlcswitch: within link, with each new block, check to see if commit fee should change
In this commit we add a new case to the main select statement within a
channel link. This select statement will serve as a Sipping Bird which
will check the network fee rate (as returned by the fee estimator) and
compare that to the fee on the commitment transaction. Using the
shouldAdjustCommitFee function, we determine if we should update the
commitment fee. If so, then we’ll send an UpdateFee message and also
trigger a new commitment update.

We also add a new unit test: TestChannelLinkUpdateCommitFee to ensure
that we update the fee accordingly if the fee increases or decreases by
a large portion.
2017-11-23 23:10:19 -06:00
..
circuit.go Htlcswitch: rename Deobfuscator and Obfuscator interfaces 2017-10-10 22:19:19 -07:00
failure.go htlcswitch: add new ExtraMsg field to ForwardingError 2017-10-16 18:15:51 -07:00
interfaces.go htlcswitch: update WipeChannel on Peer interface to simply take the chanPoint 2017-11-23 23:10:10 -06:00
iterator.go Htlcswitch: rename Deobfuscator and Obfuscator interfaces 2017-10-10 22:19:19 -07:00
link_test.go htlcswitch: within link, with each new block, check to see if commit fee should change 2017-11-23 23:10:19 -06:00
link.go htlcswitch: within link, with each new block, check to see if commit fee should change 2017-11-23 23:10:19 -06:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
mailbox_test.go htlcswitch: add new mailBox abstraction to the package 2017-11-10 19:51:01 -08:00
mailbox.go htlcswitch: add new mailBox abstraction to the package 2017-11-10 19:51:01 -08:00
mock.go htlcswitch: within link, with each new block, check to see if commit fee should change 2017-11-23 23:10:19 -06:00
packet.go htlcswitch: modify Bandwidth() method on links to use more accurate accoutning 2017-11-10 19:51:02 -08:00
queue_test.go htlcswitch: expand TestWaitingQueueThreadSafety to assert proper queue length 2017-09-25 16:55:18 -07:00
queue.go htlcswitch: modify Bandwidth() method on links to use more accurate accoutning 2017-11-10 19:51:02 -08:00
switch_test.go htlcswitch: update mockServer to be able to fail test directly 2017-11-10 19:51:03 -08:00
switch.go htlcswitch: update CloseLink to accept ideal fee rate 2017-11-23 23:10:12 -06:00
test_utils.go htlcswitch: within link, with each new block, check to see if commit fee should change 2017-11-23 23:10:19 -06:00