Skip to content

Conversation

doitian
Copy link
Member

@doitian doitian commented Mar 25, 2025

Continuation of #511

Co-Authored-By: @contrun

@doitian

This comment was marked as outdated.

@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch from 5acd6e8 to 596b448 Compare March 25, 2025 07:10
@doitian

This comment was marked as outdated.

@doitian doitian closed this Mar 26, 2025
@doitian doitian reopened this Mar 28, 2025
@doitian doitian closed this Jun 11, 2025
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch from 596b448 to ba6585c Compare June 11, 2025 04:14
@doitian doitian reopened this Jun 11, 2025
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch 3 times, most recently from c4c2296 to 66737cd Compare June 12, 2025 03:24
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 340 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (ba6585c) to head (66737cd).

Files with missing lines Patch % Lines
crates/fiber-lib/src/store/subscription.rs 0.00% 91 Missing ⚠️
crates/fiber-lib/src/fiber/gossip.rs 0.00% 81 Missing ⚠️
crates/fiber-lib/src/store/store_impl/mod.rs 0.00% 64 Missing ⚠️
crates/fiber-lib/src/fiber/channel.rs 0.00% 37 Missing ⚠️
crates/fiber-lib/src/watchtower/store.rs 0.00% 28 Missing ⚠️
crates/fiber-lib/src/store/store_impl/native.rs 0.00% 15 Missing ⚠️
crates/fiber-lib/src/invoice/store.rs 0.00% 10 Missing ⚠️
crates/fiber-bin/src/main.rs 0.00% 8 Missing ⚠️
crates/fiber-lib/src/fiber/network.rs 0.00% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #615    +/-   ##
========================================
  Coverage     0.00%   0.00%            
========================================
  Files           55      57     +2     
  Lines        34753   35093   +340     
========================================
- Misses       34753   35093   +340     
Flag Coverage Δ
unittests 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch 5 times, most recently from 19523f1 to 98f93b5 Compare June 13, 2025 07:50
doitian added a commit to doitian/fiber that referenced this pull request Jun 15, 2025
Add StoreWithPubSub to emit store update events. It uses ractor
OutputPort for pub-sub.

This is a rework of StoreWithHooks in nervosnetwork#511

- Use decorator pattern to add additional features on Store
- Minimize the interface change that original codes relying on Store
  traits dot not need to change.
- Avoid using an Actor to fetch extra data asynchronously. This resolves
  the issue mentioned in
  nervosnetwork#615 (comment)
  . The channel actor cleans preimage on success payment automatically.
  Thus we may fail to get the preimage when settling the cch payment in
  the BTC end.
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch from ca873f2 to ed4e533 Compare June 15, 2025 06:39
doitian added a commit to doitian/fiber that referenced this pull request Jun 15, 2025
Add StoreWithPubSub to emit store update events. It uses ractor
OutputPort for pub-sub.

This is a rework of StoreWithHooks in nervosnetwork#511

- Use decorator pattern to add additional features on Store
- Minimize the interface change that original codes relying on Store
  traits dot not need to change.
- Avoid using an Actor to fetch extra data asynchronously. This resolves
  the issue mentioned in
  nervosnetwork#615 (comment)
  . The channel actor cleans preimage on success payment automatically.
  Thus we may fail to get the preimage when settling the cch payment in
  the BTC end.
doitian added a commit to doitian/fiber that referenced this pull request Jun 15, 2025
Add StoreWithPubSub to emit store update events. It uses ractor
OutputPort for pub-sub.

This is a rework of StoreWithHooks in nervosnetwork#511

- Use decorator pattern to add additional features on Store
- Minimize the interface change that original codes relying on Store
  traits dot not need to change.
- Avoid using an Actor to fetch extra data asynchronously. This resolves
  the issue mentioned in
  nervosnetwork#615 (comment)
  . The channel actor cleans preimage on success payment automatically.
  Thus we may fail to get the preimage when settling the cch payment in
  the BTC end.
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch from ed4e533 to 569fbaf Compare June 15, 2025 11:04
doitian added a commit to doitian/fiber that referenced this pull request Jun 15, 2025
Add StoreWithPubSub to emit store update events. It uses ractor
OutputPort for pub-sub.

This is a rework of StoreWithHooks in nervosnetwork#511

- Use decorator pattern to add additional features on Store
- Minimize the interface change that original codes relying on Store
  traits dot not need to change.
- Avoid using an Actor to fetch extra data asynchronously. This resolves
  the issue mentioned in
  nervosnetwork#615 (comment)
  . The channel actor cleans preimage on success payment automatically.
  Thus we may fail to get the preimage when settling the cch payment in
  the BTC end.
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch from 569fbaf to 05d7f07 Compare June 15, 2025 11:08
doitian added a commit to doitian/fiber that referenced this pull request Jun 15, 2025
Add StoreWithPubSub to emit store update events. It uses ractor
OutputPort for pub-sub.

This is a rework of StoreWithHooks in nervosnetwork#511

- Use decorator pattern to add additional features on Store
- Minimize the interface change that original codes relying on Store
  traits dot not need to change.
- Avoid using an Actor to fetch extra data asynchronously. This resolves
  the issue mentioned in
  nervosnetwork#615 (comment)
  . The channel actor cleans preimage on success payment automatically.
  Thus we may fail to get the preimage when settling the cch payment in
  the BTC end.
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch from 05d7f07 to 4b7a93b Compare June 15, 2025 15:23
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch 5 times, most recently from 40703dc to cc69a53 Compare June 19, 2025 02:09
doitian added a commit to doitian/fiber that referenced this pull request Jun 30, 2025
Add StoreWithPubSub to emit store update events. It uses ractor
OutputPort for pub-sub.

This is a rework of StoreWithHooks in nervosnetwork#511

- Use decorator pattern to add additional features on Store
- Minimize the interface change that original codes relying on Store
  traits dot not need to change.
- Avoid using an Actor to fetch extra data asynchronously. This resolves
  the issue mentioned in
  nervosnetwork#615 (comment)
  . The channel actor cleans preimage on success payment automatically.
  Thus we may fail to get the preimage when settling the cch payment in
  the BTC end.
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch from cc69a53 to 5e12c6f Compare June 30, 2025 03:53
doitian added a commit to doitian/fiber that referenced this pull request Aug 11, 2025
Add StoreWithPubSub to emit store update events. It uses ractor
OutputPort for pub-sub.

This is a rework of StoreWithHooks in nervosnetwork#511

- Use decorator pattern to add additional features on Store
- Minimize the interface change that original codes relying on Store
  traits dot not need to change.
- Avoid using an Actor to fetch extra data asynchronously. This resolves
  the issue mentioned in
  nervosnetwork#615 (comment)
  . The channel actor cleans preimage on success payment automatically.
  Thus we may fail to get the preimage when settling the cch payment in
  the BTC end.
doitian added a commit to doitian/fiber that referenced this pull request Aug 11, 2025
Add StoreWithPubSub to emit store update events. It uses ractor
OutputPort for pub-sub.

This is a rework of StoreWithHooks in nervosnetwork#511

- Use decorator pattern to add additional features on Store
- Minimize the interface change that original codes relying on Store
  traits dot not need to change.
- Avoid using an Actor to fetch extra data asynchronously. This resolves
  the issue mentioned in
  nervosnetwork#615 (comment)
  . The channel actor cleans preimage on success payment automatically.
  Thus we may fail to get the preimage when settling the cch payment in
  the BTC end.
doitian added a commit to doitian/fiber that referenced this pull request Aug 11, 2025
 Add StoreWithPubSub to emit store update events. It uses ractor
 OutputPort for pub-sub.

 This is a rework of StoreWithHooks in nervosnetwork#511

 - Use decorator pattern to add additional features on Store
 - Minimize the interface change that original codes relying on Store
   traits dot not need to change.
 - Avoid using an Actor to fetch extra data asynchronously. This resolves
   the issue mentioned in
   nervosnetwork#615 (comment)
   . The channel actor cleans preimage on success payment automatically.
   Thus we may fail to get the preimage when settling the cch payment in
   the BTC end.
doitian added a commit to doitian/fiber that referenced this pull request Aug 12, 2025
 Add StoreWithPubSub to emit store update events. It uses ractor
 OutputPort for pub-sub.

 This is a rework of StoreWithHooks in nervosnetwork#511

 - Use decorator pattern to add additional features on Store
 - Minimize the interface change that original codes relying on Store
   traits dot not need to change.
 - Avoid using an Actor to fetch extra data asynchronously. This resolves
   the issue mentioned in
   nervosnetwork#615 (comment)
   . The channel actor cleans preimage on success payment automatically.
   Thus we may fail to get the preimage when settling the cch payment in
   the BTC end.
doitian added a commit to doitian/fiber that referenced this pull request Aug 12, 2025
Add StoreWithPubSub to emit store update events. It uses ractor
OutputPort for pub-sub.

This is a rework of StoreWithHooks in nervosnetwork#511

- Use decorator pattern to add additional features on Store
- Minimize the interface change that original codes relying on Store
  traits dot not need to change.
- Avoid using an Actor to fetch extra data asynchronously. This resolves
  the issue mentioned in
  nervosnetwork#615 (comment)
  . The channel actor cleans preimage on success payment automatically.
  Thus we may fail to get the preimage when settling the cch payment in
  the BTC end.
@doitian doitian marked this pull request as draft August 12, 2025 23:45
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch from 5e12c6f to 4cae544 Compare August 13, 2025 07:25
doitian added a commit to doitian/fiber that referenced this pull request Aug 13, 2025
Add StoreWithPubSub to emit store update events. It uses ractor
OutputPort for pub-sub.

This is a rework of StoreWithHooks in nervosnetwork#511

- Use decorator pattern to add additional features on Store
- Minimize the interface change that original codes relying on Store
  traits dot not need to change.
- Avoid using an Actor to fetch extra data asynchronously. This resolves
  the issue mentioned in
  nervosnetwork#615 (comment)
  . The channel actor cleans preimage on success payment automatically.
  Thus we may fail to get the preimage when settling the cch payment in
  the BTC end.
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch 2 times, most recently from 2e456fd to 838e0f4 Compare August 15, 2025 03:23
doitian added a commit to doitian/fiber that referenced this pull request Aug 15, 2025
Add StoreWithPubSub to emit store update events. It uses ractor
OutputPort for pub-sub.

This is a rework of StoreWithHooks in nervosnetwork#511

- Use decorator pattern to add additional features on Store
- Minimize the interface change that original codes relying on Store
  traits dot not need to change.
- Avoid using an Actor to fetch extra data asynchronously. This resolves
  the issue mentioned in
  nervosnetwork#615 (comment)
  . The channel actor cleans preimage on success payment automatically.
  Thus we may fail to get the preimage when settling the cch payment in
  the BTC end.
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch from 838e0f4 to 87ce55b Compare August 15, 2025 03:27
@doitian
Copy link
Member Author

doitian commented Aug 18, 2025

Actions required: refactor the code to make cch a non-wasm feature. Current code base has to put cfg for non-wasm environments in many places.

@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch 2 times, most recently from d95c490 to 6674b19 Compare September 9, 2025 00:30
Add StoreWithPubSub to emit store update events. It uses ractor
OutputPort for pub-sub.

This is a rework of StoreWithHooks in nervosnetwork#511

- Use decorator pattern to add additional features on Store
- Minimize the interface change that original codes relying on Store
  traits dot not need to change.
- Avoid using an Actor to fetch extra data asynchronously. This resolves
  the issue mentioned in
  nervosnetwork#615 (comment)
  . The channel actor cleans preimage on success payment automatically.
  Thus we may fail to get the preimage when settling the cch payment in
  the BTC end.
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch from 6674b19 to 7cb43f9 Compare September 9, 2025 01:03
@doitian doitian marked this pull request as ready for review September 9, 2025 01:10
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch from 7cb43f9 to af20ea6 Compare September 9, 2025 06:45
@doitian doitian force-pushed the contrun/support-fiber-multiple-hops-payment-in-cross-chain-transaction branch from 3c3a1b3 to 5741722 Compare September 9, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants