Open pirapira opened 5 years ago
Maybe document this possibility in the spec?
Maybe, create a limit so only 1/5 of a user's balance can be spent during one block?
Is submarine send() useful?
Maybe document this possibility in the spec?
It's documented in https://raiden-network-specification.readthedocs.io/en/latest/service_contracts.html#double-spending
When an honest service calls
OneToN.claim()
, another malicious service (maybe collaborating with the owner of the claimed fund) can try to call the same function with another IOU, and deplete the IOU issuer's balance.As a result, the honest service loses its IOU but it does not get any transfers.
This scenario is just a part of the already accepted double spending problem, but this attack vector should be well-known before the contract is actually used.