-
Notifications
You must be signed in to change notification settings - Fork 55
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
[Maker] Register Fidelity at Mempool #386
Comments
Well in order to register the fidelity bond before waiting for its confirmation -> we have to create a fidelity bond instance before looping for fidelitiy tx confirmation which requires confirmation height of this tx which can't be known before this tx got confirmed. Also we would also need to calculate coinswap/src/wallet/fidelity.rs Lines 428 to 443 in 6297d78
|
One way could be just assume its confirmation height = current height +1. |
Just change it to |
Same has height. Change it to option. When in mempool these values will be |
Yes, I thought about but that could create another set of problems : |
Yes in that case the next time the maker starts up, it should be able to identify the bond with None, wait for its confirmation then change the values. The only thing it can do after getting a Even if it shuts down with the None value, it shouldn't be a problem. |
yeah, makes sense. |
Currently, we are registering fidelity bond only when they are confirmed. This creates an edge case when the fidelity tx is in mempool and maker unexpectedly shutdown, it will loose the fund.
The text was updated successfully, but these errors were encountered: