Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
5cb899e
ordermatch: commit-after-validate, sequential per-peer sync, synced f…
shamardy Aug 19, 2025
b2217f6
remove unreachable null-root guard
shamardy Aug 20, 2025
32f4284
enforce global maker timeout for remote pubkeys
shamardy Aug 20, 2025
db166f2
wip
shamardy Aug 21, 2025
2ab576e
Merge remote-tracking branch 'origin/dev' into hotfix/sync-orderbook-…
shamardy Aug 21, 2025
4ffb7f7
don't propogate stale PubkeyKeepAlives, log-and-continue on sync erro…
shamardy Aug 21, 2025
e8372dc
ordermatch: per-pair liveness, origin-only sync, pair-level GC
shamardy Aug 29, 2025
d4465fb
Merge remote-tracking branch 'origin/dev' into hotfix/sync-orderbook-…
shamardy Aug 29, 2025
0f47c68
extend `test_order_should_not_be_displayed_when_node_is_down` wait to…
shamardy Sep 2, 2025
84468c2
feature‑gate integration tests in the right way
shamardy Sep 3, 2025
099012e
try to fix flaky `set_price_with_cancel_previous_should_broadcast_can…
shamardy Sep 3, 2025
89edefd
review fix: return per‑pair trie_roots from process_keep_alive and do…
shamardy Sep 3, 2025
484852e
review fixes: move `SyncFailure` comment and use `filter_map` instead…
shamardy Sep 3, 2025
b009b53
review fixes: clarify rate‑limiter comment
shamardy Sep 3, 2025
ef4197c
review fix: remove double iteration while avoiding overlapping borrow…
shamardy Sep 4, 2025
06341fa
review fixes: prefer `values().max().copied()`, use ASCII apostrophe
shamardy Sep 4, 2025
575d1d3
ordermatch: on cancel, advance per‑pair timestamp floor; drop livenes…
shamardy Sep 4, 2025
d5055b3
review fixes: last few ones
shamardy Sep 4, 2025
8ef7450
Merge remote-tracking branch 'origin/dev' into hotfix/sync-orderbook-…
shamardy Sep 10, 2025
967c8b8
review fixes: `test_own_orders_should_not_be_removed_from_orderbook` …
shamardy Sep 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
- name: Test
run: |
wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/635112d590618165a152dfa0f31e95a9be39a8f6/zcutil/fetch-params-alt.sh | bash
cargo test --test 'mm2_tests_main' --no-fail-fast
cargo test --test 'mm2_tests_main' --features for-tests --no-fail-fast

mac-x86-64-kdf-integration:
timeout-minutes: 90
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
- name: Test
run: |
wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/635112d590618165a152dfa0f31e95a9be39a8f6/zcutil/fetch-params-alt.sh | bash
cargo test --test 'mm2_tests_main' --no-fail-fast
cargo test --test 'mm2_tests_main' --features for-tests --no-fail-fast

win-x86-64-kdf-integration:
timeout-minutes: 90
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
- name: Test
run: |
Invoke-WebRequest -Uri https://raw.githubusercontent.com/KomodoPlatform/komodo/635112d590618165a152dfa0f31e95a9be39a8f6/zcutil/fetch-params-alt.bat -OutFile \cmd.bat && \cmd.bat
cargo test --test 'mm2_tests_main' --no-fail-fast
cargo test --test 'mm2_tests_main' --features for-tests --no-fail-fast

docker-tests:
timeout-minutes: 90
Expand Down
19 changes: 17 additions & 2 deletions mm2src/mm2_main/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ custom-swap-locktime = [] # only for testing purposes, should never be activated
native = [] # Deprecated
track-ctx-pointer = ["common/track-ctx-pointer"]
zhtlc-native-tests = ["coins/zhtlc-native-tests"]
run-docker-tests = ["coins/run-docker-tests"]
run-docker-tests = ["for-tests", "coins/run-docker-tests"]
default = []
trezor-udp = ["crypto/trezor-udp"] # use for tests to connect to trezor emulator over udp
run-device-tests = []
Expand All @@ -29,7 +29,12 @@ new-db-arch = ["mm2_core/new-db-arch"] # A temporary feature to integrate the ne
# Temporary feature for implementing IBC wrap/unwrap mechanism and will be removed
# once we consider it as stable.
ibc-routing-for-swaps = []
for-tests = []
for-tests = [
"coins/for-tests",
"coins_activation/for-tests",
"common/for-tests",
"trading_api/for-tests"
]

[dependencies]
async-std = { workspace = true, features = ["unstable"] }
Expand Down Expand Up @@ -156,3 +161,13 @@ gstuff.workspace = true
prost-build = { version = "0.12", default-features = false }
regex.workspace = true

[[test]]
name = "docker_tests_main"
path = "tests/docker_tests_main.rs"
required-features = ["run-docker-tests"]

[[test]]
name = "mm2_tests_main"
path = "tests/mm2_tests_main.rs"
required-features = ["for-tests"]

Loading
Loading