-
Notifications
You must be signed in to change notification settings - Fork 101
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
fix(swaps): maintain legacy compatibility for negotiation messages #2353
Conversation
mm2src/mm2_main/src/lp_swap.rs
Outdated
#[serde(serialize_with = "H264::serialize_as_byte_seq")] | ||
#[serde(deserialize_with = "H264::deserialize_as_bytes")] |
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.
decided to use new ser/der functions instead of modifying the old ones as the old ones needed for backward compatibility for swap files ref
pub maker_pubkey: H264Json, |
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.
minor notes
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.
Lgtm
updated a maker to this and started a swap with it from an older taker
where does it come from? can we ignore it? |
It's due to the below komodo-defi-framework/mm2src/mm2_main/src/lp_swap/maker_swap.rs Lines 147 to 148 in 39515a9
It seems we should have used serde rename @laruh for p2p backward compatibility when serializing and sending swap status to an old node. Will fix it in this PR. |
This is for `TakerSwapData::maker_pubkey` and `MakerSwapData::taker_pubkey` to fix p2p backward compatibility when serializing to old nodes
@cipig can you please check if the below error doesn't occur anymore
|
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.
error is now gone, swaps still working fine
* dev: fix(derive_key_from_path): check length of current_key_material (#2356) chore(release): bump mm2 version to 2.4.0-beta (#2346) fix(tests): add additional testnet sepolia nodes to test code (#2358) fix(swaps): maintain legacy compatibility for negotiation messages (#2353) refactor(SwapOps): impl defaults for protocol specific swapops fns (#2354) feat(tpu-v2): provide swap protocol versioning (#2324) feat(wallet): add change mnemonic password rpc (#2317) fix(tpu-v2): fix tpu-v2 wait for payment spend and extract secret (#2261) feat(tendermint): unstaking/undelegation (#2330) fix(utxo-withdraw): get hw ctx only when `PrivKeyPolicy` is trezor (#2333) feat(event-streaming): API-driven subscription management (#2172) fix(hash-types): remove panic, enforce fixed-size arrays (#2279) fix(ARRR): store unconfirmed change output (#2276) feat(tendermint): staking/delegation (#2322) chore(deps): `timed-map` migration (#2247) fix(mem-leak): `running_swap` never shrinks (#2301) chore(dep-bump): libp2p (#2326) refactor(build script): rewrite the main build script (#2319)
* dev: fix(derive_key_from_path): check length of current_key_material (#2356) chore(release): bump mm2 version to 2.4.0-beta (#2346) fix(tests): add additional testnet sepolia nodes to test code (#2358) fix(swaps): maintain legacy compatibility for negotiation messages (#2353) refactor(SwapOps): impl defaults for protocol specific swapops fns (#2354) feat(tpu-v2): provide swap protocol versioning (#2324) feat(wallet): add change mnemonic password rpc (#2317) fix(tpu-v2): fix tpu-v2 wait for payment spend and extract secret (#2261) feat(tendermint): unstaking/undelegation (#2330) fix(utxo-withdraw): get hw ctx only when `PrivKeyPolicy` is trezor (#2333) feat(event-streaming): API-driven subscription management (#2172) fix(hash-types): remove panic, enforce fixed-size arrays (#2279) fix(ARRR): store unconfirmed change output (#2276) feat(tendermint): staking/delegation (#2322) chore(deps): `timed-map` migration (#2247) fix(mem-leak): `running_swap` never shrinks (#2301) chore(dep-bump): libp2p (#2326) refactor(build script): rewrite the main build script (#2319)
* dev: (24 commits) fix(eth-tpu): remove state from funding validation (KomodoPlatform#2334) improvement(rpc-server): rpc server dynamic port allocation (KomodoPlatform#2342) fix(tests): fix or ignore unstable tests (KomodoPlatform#2365) fix(fs): make `filter_files_by_extension` return only files (KomodoPlatform#2364) fix(derive_key_from_path): check length of current_key_material (KomodoPlatform#2356) chore(release): bump mm2 version to 2.4.0-beta (KomodoPlatform#2346) fix(tests): add additional testnet sepolia nodes to test code (KomodoPlatform#2358) fix(swaps): maintain legacy compatibility for negotiation messages (KomodoPlatform#2353) refactor(SwapOps): impl defaults for protocol specific swapops fns (KomodoPlatform#2354) feat(tpu-v2): provide swap protocol versioning (KomodoPlatform#2324) feat(wallet): add change mnemonic password rpc (KomodoPlatform#2317) fix(tpu-v2): fix tpu-v2 wait for payment spend and extract secret (KomodoPlatform#2261) feat(tendermint): unstaking/undelegation (KomodoPlatform#2330) fix(utxo-withdraw): get hw ctx only when `PrivKeyPolicy` is trezor (KomodoPlatform#2333) feat(event-streaming): API-driven subscription management (KomodoPlatform#2172) fix(hash-types): remove panic, enforce fixed-size arrays (KomodoPlatform#2279) fix(ARRR): store unconfirmed change output (KomodoPlatform#2276) feat(tendermint): staking/delegation (KomodoPlatform#2322) chore(deps): `timed-map` migration (KomodoPlatform#2247) fix(mem-leak): `running_swap` never shrinks (KomodoPlatform#2301) ...
fixes #2331 (comment)