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

Fix core too strongly bound to underlying nodes #460

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

jeandemeusy
Copy link
Collaborator

@jeandemeusy jeandemeusy commented Jan 11, 2024

CT Core relies on nodes, more precisely on node's API's. In case a node get unreachable, a call to it's API will fail. This behaviour is expected, but needs some attention.
If a result of the API call is a dictionary, accessing the content of this dictionary needs to be done in a safe way.

This was done most of the time, but some remaining parts of the codes were still using API results without checking that the result is indeed available.

This PR fixes this issue (#459)

@jeandemeusy jeandemeusy added the bug A bug in the code that needs to be fixed label Jan 11, 2024
@jeandemeusy jeandemeusy self-assigned this Jan 11, 2024
@jeandemeusy jeandemeusy linked an issue Jan 11, 2024 that may be closed by this pull request
@Teebor-Choka
Copy link
Collaborator

It'd be nice to see a more detailed description of the problem on the PR.

@jeandemeusy
Copy link
Collaborator Author

jeandemeusy commented Jan 12, 2024

It'd be nice to see a more detailed description of the problem on the PR.

It's still a draft and WIP.

@jeandemeusy jeandemeusy changed the title Fix address retrieval and funding in low balance channels Fix core too strongly bound to underlying nodes Jan 12, 2024
@jeandemeusy jeandemeusy marked this pull request as ready for review January 12, 2024 14:18
@jeandemeusy jeandemeusy merged commit 9a9b6ea into main Jan 12, 2024
2 checks passed
@jeandemeusy jeandemeusy deleted the jean/core-crashing-on-node-unreachable branch January 16, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in the code that needs to be fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Core crashing if a node is unreachable
2 participants