Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Efficient peer online/channel active/scid->peer lookups #77

Closed
JssDWt opened this issue Apr 20, 2023 · 1 comment
Closed

Efficient peer online/channel active/scid->peer lookups #77

JssDWt opened this issue Apr 20, 2023 · 1 comment
Assignees

Comments

@JssDWt
Copy link
Collaborator

JssDWt commented Apr 20, 2023

Currently there are a few lookups

  • Check whether peer is online
  • Lookup peer id by scid/short channel id
  • Check whether channel is active

These checks are now inefficient, because they iterate basically every channel. And they are used on almost every htlc.
Build a quick cached lookup for more efficiency.

@JssDWt JssDWt self-assigned this Apr 20, 2023
@JssDWt JssDWt mentioned this issue Apr 20, 2023
@JssDWt
Copy link
Collaborator Author

JssDWt commented Aug 7, 2023

Fixed in #78

@JssDWt JssDWt closed this as completed Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant