-
Notifications
You must be signed in to change notification settings - Fork 118
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
proof courier: general cleanup and refactor, re-try after restart #734
Conversation
8439119
to
96dcb41
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.
Nice to see the disentangled proof courier configs. I don't think moving the custodian delay makes sense to me.
96dcb41
to
5128588
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.
LGTM, nice to see the simpler courier handling + general cleanup.
5128588
to
6247fc9
Compare
Now that we have enabled a proof courier for all integration tests, we don't need to conditionally load the config anymore.
With this commit we disentangle the configurations for the two proof couriers, so we can configure them individually in a proper way.
6247fc9
to
a7dca4e
Compare
@guggero just two nits, but otherwise I can approve quickly |
Instead of needing to create a special proof courier address and then creating a courier from that, we want to have a central dispatcher that can hold on to the configuration for each of the different couriers. A courier is then created through the dispatcher directly.
a7dca4e
to
f5937f0
Compare
This commit switches the custodian and porter over to using the new proof courier dispatcher. This then allows us to delete a bunch of now unused code related to proof courier addresses.
We didn't re-try using a proof courier to receive an asset after a restart of the daemon. This commit fixes #597.
This commit moves the notification for subscribers about a transfer being complete from the proof courier only part to the general function we end up in if a transfer is complete.
This commit makes sure we only start the proof courier once the on-chain transaction has confirmed. Otherwise we'll run into backoffs for sure until we get the first confirmation.
By reducing the hashmail proof receiver ACK timeout from 15 seconds to 5 seconds, we can save quite some time during the integration tests.
f5937f0
to
016016b
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.
Nice!
Fixes #597.
This PR removes a bunch of TODOs around the way proof couriers are instantiated and receive their configuration.
After the refactor we then fix a bug where we didn't attempt to fetch a proof using a proof courier again after restarting the daemon.