thecointech / thecoin

Mono-repo for TheCoin project
https://thecoin.io
GNU Affero General Public License v3.0
3 stars 1 forks source link

Fix/coin deposit #371

Closed FrozenKiwi closed 2 years ago

FrozenKiwi commented 2 years ago

Coin transfers should affect their internal balance on completion, not on initialization.

This allows us to compensate for lost transactions in periods of very high traffic. It also makes a lot more sense to affect it then, as that's the point where we know the transaction completed.

Tested with basic jest test, and by running deposit & withdrawal in devlive