forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 94
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
[r2r] Swap watcher node basic functionality #1457
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
a8d110b
add initial swap watcher node functionality
caglaryucekaya 735dc2b
Merge branch 'dev' of github.com:KomodoPlatform/atomicDEX-API into wa…
caglaryucekaya b922e4e
broadcast watcher message immediately after taker payment is sent
caglaryucekaya 8127ee5
rename the WatcherData struct to TakerSwapWatcherData
caglaryucekaya 638f1b7
use separate SwapWatcherMsg for watchers
caglaryucekaya a14d31d
make taker send the entire spending transaction to watcher nodes
caglaryucekaya 8d2e6cb
broadcast watcher message periodically in wait_for_taker_payment_spend
caglaryucekaya 39f5be2
check if transaction outputs is empty in p2sh_spending_tx
caglaryucekaya a534d8d
fix minor details
caglaryucekaya 8b57858
move utxo coin generation methods to docker_tests_common
caglaryucekaya df84e4d
use Mm2TestConf for watcher node tests
caglaryucekaya 1f0c6a7
prevent running multiple watcher threads for the same swap
caglaryucekaya efe4294
remove async from spawn_taker_swap_watcher
caglaryucekaya 96e1aeb
check if htlc spend fee is greater than the transaction output
caglaryucekaya bf93a96
add empty line at the end of docker_tests_common
caglaryucekaya 03044f1
discard prev_transaction mutability after modification
caglaryucekaya 52ecd87
check if transaction outputs is empty in utxo_common functions
caglaryucekaya 979d036
use the drop_mutability macro
caglaryucekaya d897dbf
move all watcher related code to the swap_watcher module
caglaryucekaya 807386e
improve the taker_swap_watchers usage
caglaryucekaya 63ffaa9
Merge branch 'dev' of github.com:KomodoPlatform/atomicDEX-API into wa…
caglaryucekaya 693c005
remove unused types and structs
caglaryucekaya 726afe3
check if the transaction script has instructions
caglaryucekaya e89f88d
check if the transaction has any inputs
caglaryucekaya c0f8c1e
fix minor stuff
caglaryucekaya 011ba95
make watchers validate taker payment at most once
caglaryucekaya 34dc5b7
release taker_swap_watchers lock after inserting the uuid to the set
caglaryucekaya 4958834
fix the error type in instruction iterator
caglaryucekaya 152d507
reorder taker_swap_watchers lock/release structure
caglaryucekaya 2521f43
use separate files for large json test strings
caglaryucekaya 376d97d
remove watcher arguments from test helper functions
caglaryucekaya 20c35e8
Merge branch 'dev' of github.com:KomodoPlatform/atomicDEX-API into wa…
caglaryucekaya 40e94b4
Merge branch 'dev' of github.com:KomodoPlatform/atomicDEX-API into wa…
caglaryucekaya 9130ba8
Merge branch 'dev' of github.com:KomodoPlatform/atomicDEX-API into wa…
caglaryucekaya 4e36127
Merge branch 'dev' of github.com:KomodoPlatform/atomicDEX-API into wa…
caglaryucekaya d2166de
propagate watcher messages whether the node is watcher or not
caglaryucekaya 424b1fb
remove swap lock related code from the swap_watcher
caglaryucekaya 7aaa88f
remove running_swaps related code from swap_watcher
caglaryucekaya e5dd063
check if a watcher with the same uuid exists before spawning a thread
caglaryucekaya 65b437c
fix minor problems
caglaryucekaya f58bc9d
remove AtomicSwap implementation from swap_watcher
caglaryucekaya c403935
make taker trigger a WatcherMessageSent event only if it is actually …
caglaryucekaya b5077b5
remove an unnecessary line
caglaryucekaya f9ad101
log error if watcher message could not be sent
caglaryucekaya 473a04c
improve mutex usage for the taker_swap_watchers
caglaryucekaya 0c8b58f
Merge branch 'dev' of github.com:KomodoPlatform/atomicDEX-API into wa…
caglaryucekaya 281fb4b
fix formatting
caglaryucekaya 56aac96
Merge branch 'dev' of github.com:KomodoPlatform/atomicDEX-API into wa…
caglaryucekaya 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 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 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 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 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 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 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 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
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.
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.
Could you please add corresponding
WatcherValidatePayment
error?Probably at the next sprint.