-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving funds commitment implementation #3748
Conversation
e467cc2
to
6ff4af7
Compare
80e34b6
to
590e84d
Compare
8f67d89
to
875f5f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work 💯 Leaving a last batch of comments. I'm happy to merge once they are addressed!
3244708
to
62e8f0a
Compare
62e8f0a
to
d2b5cc0
Compare
a1f5e64
to
4672795
Compare
// Search for the operator address in the cache. Store the operator | ||
// address in the cache if it's not there. | ||
if operatorID, found := operatorIDCache[operatorAddress]; !found { | ||
operatorID, err := mft.chain.GetOperatorID(operatorAddress) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking and we can address this in the next PR: Let's rename this operatorID
to fetchedOperatorID
to not shadow the variable declared in the if
.
#Refs: #3733.
This PR introduces functionalities that enable a wallet to submit a moving funds commitment. These functionalities have been incorporated into the
tbtcpg
package through the creation and execution of aMovingFundsTask
.They were implemented in the same manner as other procedures such as deposit sweeps and redemptions.
The task results in a moving funds proposal, which is needed for generating the Bitcoin transaction that transfer funds between wallets. Usually, this process will also involve submitting the moving funds commitment transaction to the
Bridge
. This submission step may be skipped if the commitment has already been submitted, which can occur if a previously initiated moving funds procedure was interrupted post-commitment submission and still needs completion.Executing a moving funds task consists of several key steps:
Upon completion of the moving funds task, all necessary prerequisites for the Bitcoin moving funds transaction should be satisfied.