Skip to content

Conversation

@elnosh
Copy link
Collaborator

@elnosh elnosh commented Jul 5, 2025

Change the LightningNode trait get_network method to return the Network directly instead of a Result. The network shouldn't change so no need to make the get info rpc calls for node impls to get the network. Instead, store it when instantiating the node and return it whenever get_network is call.

elnosh added 2 commits July 5, 2025 16:35
When get_network was called, for most node impls it
would call the get info method to get the network.
Instead, since the network shouldn't change,
store it when instantiating the node and return it
from get_network instead of returning a Result.
@carlaKC carlaKC merged commit b23aa5f into bitcoin-dev-project:main Jul 7, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants