Right now, the merchant's mutual close function calls the verify_contract_closed() function, which is supposed to wait until the contract is closed on chain. This does not align with the way things are implemented, and in fact, this function is not implemented.
Instead, the merchant chain watcher should add a condition for this case. The scenario will be: contract is closed and local channel status is PendingMutualClose. Then it can call finalize_mutual_close.
Right now, the merchant's mutual close function calls the
verify_contract_closed()
function, which is supposed to wait until the contract is closed on chain. This does not align with the way things are implemented, and in fact, this function is not implemented.Instead, the merchant chain watcher should add a condition for this case. The scenario will be: contract is closed and local channel status is
PendingMutualClose
. Then it can callfinalize_mutual_close
.