Skip to content

Add is_running function to Node #169

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

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

jbesraa
Copy link
Contributor

@jbesraa jbesraa commented Sep 27, 2023

resolves #164

src/lib.rs Outdated
@@ -708,6 +708,11 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
Ok(())
}

/// Checks if [`Node`] runtime is available.
Copy link
Contributor Author

@jbesraa jbesraa Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation is a bit off, will fix it.

anything else I should mention in the comment?
because this check is more "codey" check and not really has anything to do with the network, should we mention this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Seems fine, although we could maybe just make it "Returns whether the [Node] is running." (as mentioning the runtime feels a bit like we're leaking internals that the user doesn't need to care about).

@jbesraa jbesraa force-pushed the feat/is-node-running branch from 0570a96 to 0212d21 Compare September 28, 2023 09:00
Copy link
Collaborator

@tnull tnull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can we also expose that in bindings, i.e., add it to ldk_node.udl?

  - Expose in bindings
@jbesraa jbesraa force-pushed the feat/is-node-running branch from 0212d21 to 0a95d72 Compare October 2, 2023 11:19
@jbesraa
Copy link
Contributor Author

jbesraa commented Oct 2, 2023

looks like we need to pin some crate(s) here?

@tnull
Copy link
Collaborator

tnull commented Oct 5, 2023

looks like we need to pin some crate(s) here?

Yeah, fixed that in #151.

@tnull tnull merged commit 0c13726 into lightningdevkit:main Oct 5, 2023
@jbesraa jbesraa deleted the feat/is-node-running branch October 24, 2023 06:17
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.

Check if node is running
2 participants