-
Notifications
You must be signed in to change notification settings - Fork 210
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
base: master
Are you sure you want to change the base?
Conversation
f714d7a
to
ef768cf
Compare
#[derive(Debug, Encodable, Decodable)] | ||
pub struct RegisteredIncomingContract { | ||
pub federation_id: FederationId, | ||
pub incoming_amount: u64, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Please don't merge yet I am still thinking about it. |
No description provided.