lnd.xprv/htlcswitch
Olaoluwa Osuntokun ad522a72c1
htlcswitch: add new ticker in switch to batch log forwarding events
In this commit, we extend the switch as is, to record details
concerning settled payment circuits. To do this, we introduce a new
interface to the package: the ForwardingLog. This is a tiny interface
that simply lets us abstract away the details of the storage backing of
the forwarding log.

Each time we receive a successful HTLC settle, we’ll log the full
details (chans, fees, time) as a pending forwarding log entry. Every 15
seconds, we’ll then batch flush out these entries to disk. When we’re
exiting, we’ll try to flush out all entries to ensure everything gets
recorded to disk.
2018-03-06 13:56:11 -05:00
..
circuit_test.go htlcswitch: Rename htlcPacket fields for clarity. 2017-12-14 17:53:58 -08:00
circuit.go htlcswitch: add incoming+outgoing amounts to the PaymentCircuit 2018-03-06 13:56:09 -05:00
failure.go htlcswitch: add new ExtraMsg field to ForwardingError 2017-10-16 18:15:51 -07:00
interfaces.go htlcswitch: add new ticker in switch to batch log forwarding events 2018-03-06 13:56:11 -05:00
iterator.go multi: comprehensive typo fixes across all packages 2018-02-06 19:11:11 -08:00
link_test.go htlcswitch tests: update tests to new FeeEstimator and fee rate types 2018-02-26 22:42:25 +01:00
link.go htlcswitch: when forwarding htlcs, set the incomingHtlcAmt 2018-03-06 13:56:10 -05:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
mailbox_test.go multi: fix several typos in godoc comments 2017-12-17 18:40:05 -08:00
mailbox.go htlcswitch: add new ProcessContractResolution method 2018-01-22 19:19:38 -08:00
mock.go htlcswitch: add new ticker in switch to batch log forwarding events 2018-03-06 13:56:11 -05:00
packet.go htlcswitch: add the incoming payment amount to the htlcPacket 2018-03-06 13:56:10 -05:00
queue_test.go htlcswitch: Remove obsolete fields from htlcPacket. 2017-12-14 17:53:58 -08:00
queue.go htlcswitch: fix alignment of the packetQueue's fields for 32-bit systems (#507) 2017-12-22 16:32:11 +01:00
switch_test.go multi: comprehensive typo fixes across all packages 2018-02-06 19:11:11 -08:00
switch.go htlcswitch: add new ticker in switch to batch log forwarding events 2018-03-06 13:56:11 -05:00
test_utils.go htlcswitch tests: update tests to new FeeEstimator and fee rate types 2018-02-26 22:42:25 +01:00