lnd.xprv/htlcswitch
Johan T. Halseth db66fef6cc
channeldb+htlcswitch: write wire messages using length prefix
In this commit, we modify the way we write wire messages across the
entire database. We'll now ensure that we always write wire messages
with a length prefix. We update the `codec.go` file to always write a 2
byte length prefix, this affects the way we write the `CommitDiff` and
`LogUpdates` struct to disk, and the network results bucket in the
switch as it includes a wire message.
2021-02-24 17:15:27 +01:00
..
hodl htlcswitch/hodl: switch from debug tag to dev 2018-10-05 13:04:45 +09:00
hop record: move CustomRecordSet 2019-12-12 00:12:19 +01:00
circuit_map.go multi: add reset closure to kvdb.Update 2020-11-05 17:57:12 +01:00
circuit_test.go server+mod: use ECDH interface for sphinx router 2020-05-20 09:05:36 +02:00
circuit.go htlcswitch: move hop iterator into htlcswitch/hop package 2019-09-05 15:30:31 +02:00
decayedlog_test.go server+htlcswitch: auto compact sphinx DB too 2020-11-13 10:19:51 +01:00
decayedlog.go kvdb: add timeout options for bbolt (#4787) 2020-12-07 15:31:49 -08:00
failure_detail.go htlcswitch: add linkError field to htlcpacket 2020-02-06 19:43:29 +02:00
failure.go htlcswitch: add linkError field to htlcpacket 2020-02-06 19:43:29 +02:00
htlcnotifier.go htlcswitch: add notifications for forwards 2020-02-19 18:03:22 +02:00
interceptable_switch.go htlcswitch,rpc: expose onion blob for intercepts 2020-10-31 14:09:52 -03:00
interfaces.go watchtower/wtclient: parameterize backup task with channel type 2020-11-25 15:04:12 -08:00
link_isolated_test.go htlcswitch/test: add test cases that triggers empty commit sig 2019-11-06 09:21:21 +01:00
link_test.go htlcswitch: init mockFeeEstimator in other LinkChannelConfigs 2021-02-15 12:14:32 -08:00
link.go multi: cap anchors feerate at configurable maximum 2020-12-15 19:54:50 +01:00
linkfailure.go htlcswitch: add PermanentFailure to LinkFailureError 2020-11-04 10:50:28 +01:00
log.go htlcswitch/hop: fix logging 2019-09-09 13:52:35 +02:00
mailbox_test.go htlcswitch: change ForwardPackets to return error 2020-06-18 12:48:21 +03:00
mailbox.go htlcswitch: change ForwardPackets to return error 2020-06-18 12:48:21 +03:00
mock.go htlcswitch: init mockFeeEstimator in other LinkChannelConfigs 2021-02-15 12:14:32 -08:00
packet.go htlcswitch: expose custom records on intercepted packet 2020-06-27 11:00:46 +02:00
payment_result_test.go htlcswitch: add cleanStore method 2020-10-06 10:46:03 +02:00
payment_result.go channeldb+htlcswitch: write wire messages using length prefix 2021-02-24 17:15:27 +01:00
sequencer.go multi: add reset closure to kvdb.Update 2020-11-05 17:57:12 +01:00
switch_test.go htlcswitch: remove fastsha256 in test 2020-06-24 18:08:38 +08:00
switch.go htlcswitch: log with format 2020-12-08 13:54:41 +01:00
test_utils.go htlcswitch: init mockFeeEstimator in other LinkChannelConfigs 2021-02-15 12:14:32 -08:00