-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: egress id race condition #4235
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4235 +/- ##
======================================
- Coverage 71% 71% -0%
======================================
Files 384 385 +1
Lines 63007 63151 +144
Branches 63007 63151 +144
======================================
+ Hits 45050 45071 +21
- Misses 15617 15741 +124
+ Partials 2340 2339 -1 ☔ View full report in Codecov by Sentry. |
3489695
to
d879ea7
Compare
PRO-689 Egress Id race condition
It's possible we're not witnessing a particular egress id / Copy of the TODO in the code:
DOT and BTC egress witnessing need to know the set of transactions they are looking for, and therefore it is possible for the witnessers to be ahead (even with lag safety), and miss the block the transaction is included in, because it hasn't seen the SC block that contains the SolutionThe solution is to attach a chain tracking block number to the broadcast before the threshold signing request. This is because after a threshold signing is done, it's possible to broadcast the transaction. We can then "hold up" Ethereum (for example) blocks until we know that we can't possibly have received an address to watch for before that Ethereum block. First PR, the SC side: #4046 The second part of this is to effectively implement the |
chore: fmt
chore: remove unused fn
e1061ca
to
a4c39e4
Compare
7e58ca0
to
8df66b7
Compare
Co-authored-by: dandanlen <3168260+dandanlen@users.noreply.github.com> Co-authored-by: Alastair Holmes <42404303+AlastairHolmes@users.noreply.github.com> Co-authored-by: Albert Llimos <53186777+albert-llimos@users.noreply.github.com> Co-authored-by: Martin Rieke <121793148+martin-chainflip@users.noreply.github.com> Co-authored-by: Maxim Shishmarev <msgmaxim@gmail.com> Co-authored-by: Marcello <marcello@chainflip.io> Co-authored-by: Roy Yang <roy@chainflip.io> Co-authored-by: kylezs <kyle@chainflip.io> Co-authored-by: Jamie Ford <jamie@chainflip.io> fix naming of session keys (#4242) fix: revert restricted balances (#4237) fix: add missing spans in multisig logs (#4239) fix cargo features (#4249) fix: remove bound addresses on account deletion (#4244) fix: remove existential deposit (#4243) fix: egress id race condition (#4235) fix: remove unwrap when getting tx receipt (#4231) fix: protect against double witnessing after safe mode (#4254) fix: runtime upgrade utils and migrations (#4258)
Pull Request
Closes: PRO-689
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
See the issue. This fixes it, by unifying the deposit_addresses adapter and the egress_items adapter under the hood. But still provides a wrapper for ease of use for each of these.