hyperledger-labs / go-perun

🌔 Perun's Blockchain-Agnostic State Channels Framework in Go.
https://perun.network/
Apache License 2.0
55 stars 18 forks source link

Settle channel when funding fails #344

Closed cryptphil closed 2 years ago

cryptphil commented 2 years ago

Location

https://github.com/hyperledger-labs/go-perun/blob/1e496bd3ce7cfd3712b7d3fdff5e74616bf52bba/client/proposal.go#L185

Problem

If funding a channel fails, we currently only return the funding error but any funds that may already have been deposited to the AssetHolder aren't automatically returned.

Proposal

If the funding fails, the client should directly settle the channel in order to withdraw funds that may have been deposited.

matthiasgeihs commented 2 years ago

Closed by #349