forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 117
fix(orders): fix cancel order race condition using time-based cache #2232
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 all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
6ad60e9
add recently cancelled orders time cache to orderbook
shamardy 232019b
revert test_cancel_order changes
shamardy 1c38da7
review fix: cherry-pick 62d26c7
mariocynicys da884fc
optimize `clear_expired_entries`
shamardy 5762d13
provide a consistent interface for `ExpirableMap`
shamardy f2ef6d3
use Copy type parameter instead of Clone in `ExpirableMap`
shamardy 87c53f8
make test_cancel_all_orders not rely on the order of messages
shamardy 5591f89
Make `RECENTLY_CANCELLED_TIMEOUT` `Duration` Type
shamardy 69fdfe9
use ctx as reference in `maker_order_cancelled_p2p_notify`
shamardy 14f7f34
move `recently_cancelled` time cache to it's own mutex in `Ordermatch…
shamardy e0e5d41
Revert "move `recently_cancelled` time cache to it's own mutex in `Or…
shamardy cdfd809
move recently cancelled back to orderbook struct and handle it in a b…
shamardy 860544f
review fix: clarify some comments
shamardy 20fa7e5
add order to `recently_cancelled` even if it was in the `order_set`
shamardy d2675d2
review fix: add implementation details to `clear_expired_entries`
shamardy abfb252
review fix: check expiry on remove as well
shamardy 5a839be
review fix: move implementation details to a comment inside the `clea…
shamardy 598045d
revert `test_cancel_all_orders` to dev state and add `test_order_canc…
shamardy 9faa804
fix clippy
shamardy 158252c
review fix: remove return types from some functions that don't need them
shamardy ff54b83
review fix: fix comments in `test_order_cancellation_received_before_…
shamardy 3f0a6bd
Merge remote-tracking branch 'origin/dev' into fix-p2p-cancellation
shamardy b1cae0f
reorder imports after merge
shamardy 9dd4544
remove adex-cli CI workflow
shamardy d55efc3
update `mm2_libp2p` dependency name for consistency
shamardy 1e6bbb8
Merge remote-tracking branch 'origin/dev' into fix-p2p-cancellation
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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.