forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 117
[r2r] Lightning taker swap p.o.c #1497
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
Merged
Merged
Changes from 32 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
94e6df2
fix some ignored tests
shamardy 92bd009
move connect_to_lightning_node to rpc_command
shamardy e18b4aa
move open_channel to rpc_command
shamardy a16cbbe
move update_channel to rpc_command
shamardy df6ae9b
move list channels rpcs to rpc_command
shamardy 48d748e
move get_channel_details, get_claimable_balances, trusted nodes rpcs …
shamardy 26806be
move close_channel to rpc_command
shamardy 3732050
move get_payment_details, list_payments_by_filter to rpc_command
shamardy 2322b25
move send_payment to rpc_command
shamardy b638bb7
move the rest of lightning RPCs to rpc_command, use lightning:: prefi…
shamardy abfb9a8
edit SwapMsg MakerPayment and TakerPayment to allow sending payment i…
shamardy d93b834
create_invoice_for_hash fn, impl other_side_instructions for Lightnin…
shamardy 62d5a9a
check connection to nodes before generating route hints, refactors
shamardy 3bb77df
fix TakerFee msg to include PaymentDataMsg (lightning invoice to be p…
shamardy 5f2b459
Merge remote-tracking branch 'origin/dev' into lightning-swaps-poc
shamardy a436358
Validate invoice received from swap messages wip
shamardy a7af8c4
Validate invoice on maker side if maker is lightning coin
shamardy ba8dfc8
Merge remote-tracking branch 'origin/dev' into lightning-swaps-poc
shamardy 9e67c41
add optional PaymentInstructions parameter to send_maker_payment, sen…
shamardy 2a94c23
implement send_taker_payment and send_maker_payment for LightningCoin
shamardy ac6b7a9
change tx_enum_from_bytes to return none for lightning coin
shamardy e8ce302
Some refactors and rollbacks
shamardy 474b0a6
impl more swap methods, do a unit test swap where taker is lightning
shamardy 2f99e1b
refactor some code by adding payment_hash_from_slice fn
shamardy 38e9049
minor fixes and added more todo for next PR/s
shamardy 03aa40d
refactor lightning taker swap test
shamardy 9ccada1
more refactors, broadcast_p2p_tx_msg shouldn't work with lightning pa…
shamardy f108dfc
add preimage of swap payment to DB after the secret is revealed (clai…
shamardy 6d622f6
wip
shamardy a4e970c
Final refactors
shamardy 7fa7042
Merge remote-tracking branch 'origin/dev' into lightning-swaps-poc
shamardy d2f8158
Review fixes: better names for some functions/structs
shamardy 60acd0a
Review fixes: some errors fixes, add channels::, nodes::, payments:: …
shamardy 24dd76a
Review fixes: fix some error handling issues
shamardy c49f7ea
more review fixes
shamardy dc4b6ca
Merge remote-tracking branch 'origin/dev' into lightning-swaps-poc
shamardy 8b515c8
review fixes wip: rename SwapTxDataMsg enum variants
shamardy 68765b8
review fixes wip: validate_instructions to return an error instead of…
shamardy 2113b7a
Review fixes: make TransactionIdentifier::tx_hex not an Option and ad…
shamardy ab4ab00
Merge remote-tracking branch 'origin/dev' into lightning-swaps-poc
shamardy 0f53219
Merge remote-tracking branch 'origin/dev' into lightning-swaps-poc
shamardy bea9173
re-add Todo that was removed by merge
shamardy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,6 +56,7 @@ async fn test_send() { | |
| "0.001".parse().unwrap(), | ||
| &None, | ||
| &[], | ||
| &None, | ||
| ) | ||
| .compat() | ||
| .await; | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.