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

chore: preparations for bolt12 support #5020

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joschisan
Copy link
Contributor

No description provided.

@joschisan joschisan requested review from a team as code owners April 19, 2024 06:21
@joschisan joschisan force-pushed the lnv2_bolt12 branch 3 times, most recently from f714d7a to ef768cf Compare April 19, 2024 08:34
#[derive(Debug, Encodable, Decodable)]
pub struct RegisteredIncomingContract {
pub federation_id: FederationId,
pub incoming_amount: u64,
Copy link
Contributor

Choose a reason for hiding this comment

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

IncomingContract has the amount in the Commitment, is this just for convenience?

Copy link
Contributor

Choose a reason for hiding this comment

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

Or does this value include fees?

Copy link
Contributor Author

@joschisan joschisan Apr 23, 2024

Choose a reason for hiding this comment

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

The two amounts differ by the fee. incoming_amount is higher and is the amount in the invoice.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can address in the future but a different name would help IMO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

incoming_htlc_amount?

pub refund_keypair: KeyPair,
}

#[derive(Debug, Clone, Eq, PartialEq, Hash, Decodable, Encodable)]
pub enum Invoice {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this should go in the common crate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would not share this for cleaner separation.

m1sterc001guy
m1sterc001guy previously approved these changes Apr 23, 2024
@joschisan joschisan added this pull request to the merge queue Apr 23, 2024
@joschisan joschisan removed this pull request from the merge queue due to a manual request Apr 23, 2024
@joschisan
Copy link
Contributor Author

Please don't merge yet I am still thinking about it.

@joschisan joschisan marked this pull request as draft April 23, 2024 18:38
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.

None yet

2 participants