Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

[draft] DLC-channels PoC #1

Draft
wants to merge 43 commits into
base: main
Choose a base branch
from
Draft

[draft] DLC-channels PoC #1

wants to merge 43 commits into from

Conversation

bonomat
Copy link

@bonomat bonomat commented Oct 26, 2022

No description provided.

@bonomat bonomat marked this pull request as draft October 26, 2022 00:09
@@ -5612,6 +5615,10 @@ impl<Signer: Sign> Channel<Signer> {
Ok(Some(res))
}

pub fn add_custom_output<L: Deref>(&mut self, amount_msat: u64, cltv_expiry: u32, logger: &L) -> Result<msgs::UpdateAddCustomOutput, ChannelError> where L::Target: Logger {
Copy link
Author

Choose a reason for hiding this comment

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

This will need an additional param for the output to be added.

}

if route.paths.len() !=1 {
return Err("Only trivial routing supported".to_owned());
Copy link
Author

Choose a reason for hiding this comment

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

This is unreachable :)

fixup! [WIP] Implement add_custom_output protocol

Just some formattings.

[WIP] Continue implementing add_custom_output protocol

fixup! [WIP] Continue implementing add_custom_output protocol

Some formattings

fixup! [WIP] Continue implementing add_custom_output protocol

Some formattings

Add todo: can this be removed?

In this case we did not update the fee rate

Fix: mostly using correct variable

Impl readable and writable to UpdateAddCustomOutput

chore: remove comment

This was done now :)

chore: some more formattings

make tests work

We have a test which pretends to add a custom output to the commit transaction. Msgs are being exchanged and commit transactions are being revoked. What is missing is to actually add the output

[WIP] Add custom outputs to commit transaction

change custom output value to 1234567 to find it easier in logs

fixup! [WIP] Add custom outputs to commit transaction

pass in a ref of a ref of course :)

chore: fix formatting

chore: Mark our TODOs with 10101 tag

missing docs
luckysori and others added 7 commits November 2, 2022 15:28
To be used in our modified `ldk-sample`.
We are failing to find the route when calling `find_route` i.e. what
is commented out with this patch.

Since we are not supporting multihop, can we just build the `Route`
ourselves?
luckysori and others added 10 commits November 7, 2022 16:31
Also, fix all the trivial warnings that were polluting the output of
the `cargo check` command.
This information can be used to create transactions that spend from
the custom output _before_ the corresponding comit transaction is
signed.

Also we remove the whole concept of a holding cell for custom outputs
because it interfered with this patch and it is unclear if we even
need it.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants