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

Improve getinfo #203

Merged
merged 4 commits into from
Apr 11, 2024
Merged

Conversation

Harshit933
Copy link
Collaborator

@Harshit933 Harshit933 commented Apr 4, 2024

Future fix #192

  • Added alias
  • Added blockheight
  • Added lampo_dir

Copy link
Owner

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

Mh!

lampo-common/src/conf.rs Outdated Show resolved Hide resolved
lampo-common/src/conf.rs Outdated Show resolved Hide resolved
lampo-common/src/conf.rs Outdated Show resolved Hide resolved
lampod/src/ln/inventory_manager.rs Outdated Show resolved Hide resolved
lampod/src/ln/inventory_manager.rs Outdated Show resolved Hide resolved
@Harshit933 Harshit933 force-pushed the feat/getinfo branch 2 times, most recently from 7164c34 to 7db08c1 Compare April 6, 2024 16:17
Copy link
Owner

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

Ok this trivial PR get already too much review.

Fix the last things that we I commented and then mark this ready

lampo-nakamoto/src/lib.rs Outdated Show resolved Hide resolved
lampod/src/ln/inventory_manager.rs Outdated Show resolved Hide resolved
lampod/src/ln/inventory_manager.rs Outdated Show resolved Hide resolved
lampod/src/ln/inventory_manager.rs Outdated Show resolved Hide resolved
lampo-common/src/model/getinfo.rs Outdated Show resolved Hide resolved
@vincenzopalazzo vincenzopalazzo added this to the v24.03 milestone Apr 7, 2024
@Harshit933 Harshit933 marked this pull request as ready for review April 9, 2024 20:59
@Harshit933 Harshit933 changed the title WIP : Improve getinfo Improve getinfo Apr 9, 2024
Copy link
Owner

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

LGTM, minors comments only but the code looks good also the git history, really good job

@@ -213,6 +215,8 @@ impl TryFrom<String> for LampoConf {
_ => "info".to_string(),
};
let log_file = conf.get_conf("log-file").unwrap_or_else(|_| None);
let alias = conf.get_conf("alias").unwrap_or(None);
Copy link
Owner

Choose a reason for hiding this comment

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

we need to announce this, but looks like I still need to finish some work here #202

Lets open a issue and keep track of this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't get it. Why do we need to announce alias? Is this related to bolt12?

Copy link
Owner

Choose a reason for hiding this comment

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

I don't get it. Why do we need to announce alias? Is this related to bolt12?

we need to announce to the network with a node announcement, it is not related to bolt12, but I did some of the work on the PR that support the bolt12

lampo-bitcoind/src/lib.rs Outdated Show resolved Hide resolved
Shows the warnings related to the bitcoin core node.

Update: The warnings of core should not be shown inside `getinfo`.
Thus removed it.
Copy link
Owner

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

ACK 36c03c2

P.S: remember to open the issue with the alias announcement

@vincenzopalazzo vincenzopalazzo merged commit e58553a into vincenzopalazzo:main Apr 11, 2024
4 of 5 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.

Make getinfo more awesome
2 participants