nervosnetwork / fiber

15 stars 8 forks source link

Properly handle the case where both parties try to simultaneously shutdown the channel #111

Open contrun opened 2 months ago

contrun commented 2 months ago

The test test_add_tlc in https://github.com/nervosnetwork/cfn-node/commit/5740867c8135f2d774081ba9a302cdd8934feae3 's parent commit failed and will succeed if we apply changes to that commit. This is because in the parent commit two parties try to simultaneously send the Shutdown message to each other, and we have not properly handled that case yet.