-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
cnct: remove nursery dependency from success resolver #3977
cnct: remove nursery dependency from success resolver #3977
Conversation
Persistence of the generated sweep tx was already removed earlier, so this field serves no purpose anymore.
To avoid complaints of the linter about copying the lock that will be introduced in a next commit.
76db847
to
8567cfc
Compare
8567cfc
to
69027e2
Compare
69027e2
to
f59eb8f
Compare
f59eb8f
to
6f65189
Compare
This commit updates the success resolver to (only) use the sweeper and not rely on utxo nursery anymore. This also gets rid of an unnecessary wait that was always performed in the nursery. In addition to that, the resolver is made stateless. This prevents us from persisting the contract report and makes the implementation more robust in general.
6f65189
to
0bc598c
Compare
Todo: figure out migration path when nursery is already trying to sweep |
For migration, it is probably enough to just run Line 100 in 2cd26d7
Other than that, the (new) resolvers are stateless and will pick up any state the resolution process was left in. |
Code got outdated because we didn't prioritize this. Closing PR now, because priority is still low. If that changes in the future, it can still be found as a reference on the parent issue #3688. |
No description provided.