Post
Topic
Board Development & Technical Discussion
Re: Doubt about double spending
by
o_e_l_e_o
on 30/09/2021, 08:24:39 UTC
The casinos which accept zero confirmation deposits have no risk of capital loss, and can only at most lose the deposit the customer placed. If the customer wins, they will not be allowed to withdraw until the deposit confirms. If the customer loses and double spends their deposit, then at most the casino will lose their deposit, and will then ban their account and IP address.

The issue of transaction malleability was solved via BIP66. Further, as you note, SW parent transactions are not maileabile.
It wasn't, as pooya has pointed out above. One of the primary goals behind segwit was to fix transaction malleability to allow the Lightning network to function properly. See here: https://bitcoincore.org/en/2016/01/26/segwit-benefits/. P2PKH and P2SH addresses are still vulnerable to such an attack, however.