1
0
Commit Graph

18 Commits

Author SHA1 Message Date
ThomasV
e74857f1ce lnmsg: remove handling of optional fields in msgdata 2023-01-13 16:11:11 +01:00
ThomasV
020637b5d4 fix field type: 'varint' was rebńamed to 'bigsize' 2023-01-13 15:45:20 +01:00
SomberNight
ab953f4a7f lnmsg: add details to FailedToParseMsg, log message type
note: Would it be ok to log potentially secret (semi-sensitive) data?
We take care not to log onchain private keys as they are extremely sensitive,
but what about logging a LN transport message that might contain channel secrets?
Decided not to, for now.
2023-01-13 10:37:06 +00:00
SomberNight
c912036180 lnpeer: ignore unknown 'odd' type messages
from BOLT-01:
A receiving node:
  - upon receiving a message of odd, unknown type:
    - MUST ignore the received message.

b201efe054/01-messaging.md (lightning-message-format)
2021-03-19 20:51:38 +01:00
SomberNight
d8352f1a0a lnworker: nicer logs/error msgs for payment failure
try to decode onion error and log it in human-readable form
2021-03-19 19:13:50 +01:00
SomberNight
eecdd056b3 lnmsg: small speed-up: read first, check length after
this saves around ~13% wall clock time in ChannelDB.load_data
2020-04-01 21:49:23 +02:00
SomberNight
a66437f399 lnonion: implement basis of varonion support 2020-04-01 21:42:48 +02:00
SomberNight
c69937395e lnmsg: add more tests (for encode_msg, decode_msg) 2020-04-01 21:40:13 +02:00
SomberNight
85d7a13360 lnmsg: implement tests from BOLT-01 2020-04-01 21:40:06 +02:00
SomberNight
f353e6d55c lnmsg: encode/decode TLVs as part of messages 2020-04-01 21:40:03 +02:00
SomberNight
542e33fd86 lnmsg: handle "..." as field count 2020-04-01 21:39:59 +02:00
SomberNight
6949752263 lnmsg: initial TLV implementation 2020-04-01 21:39:56 +02:00
SomberNight
3a73f6ee5c lnmsg.decode_msg: dict values for numbers are int, instead of BE bytes
Will be useful for TLVs where it makes sense to do the conversion in lnmsg,
as it might be more complicated than just int.from_bytes().
2020-04-01 21:39:52 +02:00
SomberNight
4c10a830f3 lnmsg: rewrite LN msg encoding/decoding 2020-04-01 21:39:48 +02:00
SomberNight
99f736f3e7 ChannelDB.load_data: add comment re bad performance, and some speed-up
On my machine, ChannelDB.load_data() went from around 6 sec to 4 sec,
just by commenting out that assert in lnmsg.

related #6006
2020-03-03 04:05:36 +01:00
SomberNight
edc00b448f fix lightning "init" msg assertion error
closes #5962
2020-02-15 15:25:41 +01:00
ThomasV
0f00f4f655 fix encode_msg: optional fields were not sent 2019-08-20 09:03:12 +02:00
Janus
5f1feee331 move lightning message encoding to new lnmsg module 2019-08-20 09:03:11 +02:00