Build finalizer python script #13
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
CryptoWrapAPI/CWcv#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finalizer purpose:
monero > check deposit statuses until it's finalized (just call /check endpoint periodically, maybe once in 5 minutes) -> then - if deposit is completed, just set used monero wallet address to be re-used (is_available to TRUE)
litecoin > check deposit statuses until it's finalized, same as monero, but with one critical difference: if payment is succeeded - DON'T set address available (to be reused).
because address must not be touched until it's output is spent (UTXO consolidated on withdrawal) -> SO re-use logic for
successfuldeposit addresses is inwithdrawal module- when user spends coins from these addresses - then it sets is_available to TRUE - because coins are spent from this address - and also keep_track is set to FALSE afteroutputis spent(btw actually we can track unspent UTXOs by looking at
confirmedstatuses +is_available- false. ) so actually no need to add keep_track? though it can add explicitness. so better do it.Theoretically finalizer should be replaced with something like zmq subscription server, so architecture is more like event-driven