Skip to content
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

[shutdown_channel] stuck in WaitingTlcAck when force shutdown #503

Open
gpBlockchain opened this issue Jan 27, 2025 · 1 comment
Open

[shutdown_channel] stuck in WaitingTlcAck when force shutdown #503

gpBlockchain opened this issue Jan 27, 2025 · 1 comment

Comments

@gpBlockchain
Copy link
Contributor

gpBlockchain commented Jan 27, 2025

commit: 8390836

  1. open_channel : a-b-c-d
  2. a.send_payment(d) 10 times
  3. d.shutdown_channel(c,force:true)
  4. wait payment finished
    expected: payment failed after shutdown_channel
    but payment is stuck in WaitingTlcAck at nodeC
 2025-01-27T02:42:44.068298Z ERROR fnn::fiber::channel: PeerId(QmX6tdm4qiBSubkzYuKeYCSKsowiffoooNxW2wQqtgu8kv) Error while processing channel command: WaitingTlcAck
    at src/fiber/channel.rs:2333
    in ractor::actor::Actor with id: "0.7", name: "Channel-0 QmX6tdm4qiBSubkzYuKeYCSKsowiffoooNxW2wQqtgu8kv <-> QmdStfbXfdyuXi19VUnjGEWJmskwTW8F2i8Ci1X6rvnXyk"

  2025-01-27T02:42:44.068939Z ERROR fnn::fiber::channel: PeerId(QmX6tdm4qiBSubkzYuKeYCSKsowiffoooNxW2wQqtgu8kv) Error while processing channel command: WaitingTlcAck
    at src/fiber/channel.rs:2333
    in ractor::actor::Actor with id: "0.7", name: "Channel-0 QmX6tdm4qiBSubkzYuKeYCSKsowiffoooNxW2wQqtgu8kv <-> QmdStfbXfdyuXi19VUnjGEWJmskwTW8F2i8Ci1X6rvnXyk"
....
Image

channel balance offered_tlc_balance != 0


2025-01-27 10:40:17 [basic_fiber.py:418][DEBUG] fiberA balance:{'local_balance': 99999999952, 'offered_tlc_balance': 105, 'received_tlc_balance': 0}
2025-01-27 10:40:17 [basic_fiber.py:418][DEBUG] fiberB balance:{'local_balance': 200000000016, 'offered_tlc_balance': 70, 'received_tlc_balance': 105}
2025-01-27 10:40:17 [basic_fiber.py:418][DEBUG] fiberC balance:{'local_balance': 200000000016, 'offered_tlc_balance': 1, 'received_tlc_balance': 70}
2025-01-27 10:40:17 [basic_fiber.py:418][DEBUG] fiberD balance:{'local_balance': 0, 'offered_tlc_balance': 0, 'received_tlc_balance': 0}
@gpBlockchain
Copy link
Contributor Author

gpBlockchain commented Jan 27, 2025

stuck in WaitingTlcAck when shutdown channel without force

  1. open_channel : a-b-c-d
  2. send_payment each other
 for _ in range(10):
    a.send_payment(d)
    d.send_payment(a)
  1. d.shutdown_channel(c)
  2. wait payment finished
    expected: payment failed after shutdown_channel
    but payment is stuck in WaitingTlcAck at nodes
2025-01-27 11:32:52 [basic_fiber.py:418][DEBUG] fiber0 balance:{'local_balance': 100000000006, 'offered_tlc_balance': 30, 'received_tlc_balance': 0}
2025-01-27 11:32:52 [basic_fiber.py:418][DEBUG] fiber1 balance:{'local_balance': 200000000006, 'offered_tlc_balance': 20, 'received_tlc_balance': 30}
2025-01-27 11:32:52 [basic_fiber.py:418][DEBUG] fiber2 balance:{'local_balance': 99999999988, 'offered_tlc_balance': 0, 'received_tlc_balance': 20}
2025-01-27 11:32:52 [basic_fiber.py:418][DEBUG] fiber3 balance:{'local_balance': 0, 'offered_tlc_balance': 0, 'received_tlc_balance': 0}
Image

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

No branches or pull requests

1 participant