Skip to content

refactor(tpu-v2): allow to skip p2p message with taker payment spend preimage for eth#2359

Merged
shamardy merged 15 commits intodevfrom
skip-preimage-p2p-msg-in-tpu
Mar 6, 2025
Merged

refactor(tpu-v2): allow to skip p2p message with taker payment spend preimage for eth#2359
shamardy merged 15 commits intodevfrom
skip-preimage-p2p-msg-in-tpu

Conversation

@laruh
Copy link
Copy Markdown

@laruh laruh commented Feb 13, 2025

Maker log https://gist.github.com/laruh/04246af979fbe9c8f2c4c3911f1a1d5b (sell UTXO, buy EVM)
Taker log https://gist.github.com/laruh/92a1e6e0e14290afe21ffb1b5608bf84 (sell EVM, buy UTXO)

This pr introduces skipping of taker payment spend preimage p2p message broadcast for coins from EVM based chains, as such taker coin actually doesn't need it to process TPU V2.
You can see it in impl TakerCoinSwapOpsV2 for EthCoin
https://github.com/KomodoPlatform/komodo-defi-framework/blob/84f5c9235f2c90c07c600dd53ca13fd9d63052af/mm2src/coins/eth.rs#L7232-L7251


Note:

Description of a potential improvement #2380

@laruh laruh force-pushed the skip-preimage-p2p-msg-in-tpu branch from 097f6f8 to 1240973 Compare February 14, 2025 12:24
@laruh laruh force-pushed the skip-preimage-p2p-msg-in-tpu branch from 1240973 to 92d7c7f Compare February 14, 2025 12:34
onur-ozkan
onur-ozkan previously approved these changes Feb 19, 2025
Copy link
Copy Markdown

@onur-ozkan onur-ozkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shamardy shamardy requested review from shamardy and removed request for shamardy March 3, 2025 11:54
shamardy
shamardy previously approved these changes Mar 5, 2025
Copy link
Copy Markdown
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Only one nit. I overlooked the code duplication as it will be handled in the refactor discussed on DM. You can leave info about the discussed refactor in this PR or the related issue for reference.

@laruh
Copy link
Copy Markdown
Author

laruh commented Mar 6, 2025

You can leave info about the discussed refactor in this PR or the related issue for reference.

I created the issue with information #2380 and added its link to this PR description

@shamardy shamardy merged commit 8141fd7 into dev Mar 6, 2025
23 of 26 checks passed
@shamardy shamardy deleted the skip-preimage-p2p-msg-in-tpu branch March 6, 2025 13:57
dimxy pushed a commit that referenced this pull request Mar 17, 2025
* dev:
  refactor(eth): use trait addr_to_string method instead of old function (#2348)
  fix(ci): use correct rustup component syntax in fmt-and-lint job (#2390)
  refactor(tx-query): use TxSearchRequest for tx queries (#2384)
  refactor(tpu-v2): allow to skip p2p message with taker payment spend preimage for eth (#2359)
dimxy pushed a commit that referenced this pull request Mar 21, 2025
* dev:
  fix(tx-history): fix unhandled IBC and HTLC events (#2385)
  improvement(dep-stack): replace deprecated `instant` dependency  (#2391)
  feat(tendermint): staking queries (#2377)
  refactor(eth): use trait addr_to_string method instead of old function (#2348)
  fix(ci): use correct rustup component syntax in fmt-and-lint job (#2390)
  refactor(tx-query): use TxSearchRequest for tx queries (#2384)
  refactor(tpu-v2): allow to skip p2p message with taker payment spend preimage for eth (#2359)
  feat(rpc): add is_success field to legacy MySwapStatusResponse (#2371)
  fix(key-derivation): use stored Argon2 parameters instead of default values (#2360)
  fix(tests): stabilize `tendermint_coin::test_claim_staking_rewards` (#2373)
  improvement(RPCs): group staking rpcs under a namespace (#2372)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants