lightningdevkit / lightning-liquidity

Other
27 stars 17 forks source link

Various messaging and serialization fixes and (performance) improvements #114

Closed tnull closed 8 months ago

tnull commented 8 months ago

Previously, we encountered a service could get overloaded due to many LSPSMessage::Invalid being sent if speaking to an incompatible client. Here, we make several changes to fix this behavior and generally improve performance and fix some oversights in message serialization. Most notably:

Note to reviewers: as this PR is rather invasive as a whole (in particular the last commit), I'd recommend reviewing commit-by-commit, which should be much more digestible.