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

WIP: Geewallet payments #1

Closed
wants to merge 2 commits into from

Conversation

canndrew
Copy link
Member

This is a work-in-progress PR for the implementation for the geewallet payments. Geewallet payments are implemented as their own lightning message type. Sending a payment requires sending a geewallet_payment message followed immediately by a commitment_signed which should be responded to with a revoke_and_ack and a commitment_signed from the counterparty.

The geewallet_payment message will evolve into update_add_htlc once we are able to get revocations (and therefore non-routable payments) working.

There are two tests in DotNetLightning.Infrastructure.Tests/ChannelOperationTests.fs for geewallet payments - one which does not send the revoke_and_ack but which passes, and one that does send it but doesn't pass.

Importing fsc.props, which overrides the values of FscToolPath and
FscToolExe, breaks my build on ubuntu with .NET Core 3.1. Removing the
import allows the build to work fine.

This commit should be reviewed later if we want to support .NET Core 2.0
(which is apparently what the overrides are for).
@knocte
Copy link
Member

knocte commented Mar 15, 2020

Can you re-create this PR again opening a new PR? I didn't have GithubActions enabled when you opened it so I guess that's the reason we don't see any CI status here.

@@ -388,6 +388,32 @@ module Channel =
[] |> Ok

// ---------- normal operation ---------
| ChannelState.Normal state, GeewalletPayment cmd when state.LocalShutdown.IsSome || state.RemoteShutdown.IsSome ->
Copy link
Member

Choose a reason for hiding this comment

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

please rename all occurrences of GeewalletPayment to MonoHopUnidirectionalPayment; I'd prefer DNL to not mention geewallet at all

@canndrew canndrew force-pushed the geewallet-payments branch from 7576c8f to b24eaca Compare March 16, 2020 11:27
@canndrew
Copy link
Member Author

canndrew commented Mar 16, 2020

I'm closing this so I can re-open another PR...

Edit: The new PR is here: #2

@canndrew canndrew closed this Mar 16, 2020
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.

2 participants