[9.x] Changing the logic of funds transfers #483
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An old, incorrect architectural decision prevents us from adding full support for uuid. Unfortunately, I can no longer maintain backward compatibility in this part.
As part of this pull request, a migration team will be developed for your projects. Also, I will write documentation on usage.
And now to the problem. At the very beginning of the development of the package, it was possible to work with only one wallet, and later the ability to create many was added. Users asked for transfers between wallets and I implemented them.
Now if you make a transfer to a user, then the recipient will be the user. And here is an example:
And here is the problem itself, in relation to "to" the wallet model should be architecturally written. After accepting this pull request, this statement will be correct.
Previously, this behavior could only be achieved in this way:
Because of what there was a different behavior in payments.
So why didn’t it bother you before, but now it was decided to change the logic of the package? It's about UUID (GUID) support. Without this change, the speed of working with uuid will drop by 25-50 times, even on rather small samples.