-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: add initiated_at block number for egresses #4046
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4046 +/- ##
======================================
- Coverage 72% 72% -0%
======================================
Files 369 370 +1
Lines 59126 59306 +180
Branches 59126 59306 +180
======================================
+ Hits 42651 42674 +23
- Misses 14357 14508 +151
- Partials 2118 2124 +6
... and 30 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
6be3117
to
e7bf8cf
Compare
e7bf8cf
to
a39d37e
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. Just a note that the runtime upgrade isn't being run, it needs to be added in the hooks.
@@ -179,6 +182,9 @@ pub mod pallet { | |||
|
|||
type BroadcastReadyProvider: OnBroadcastReady<Self::TargetChain, ApiCall = Self::ApiCall>; | |||
|
|||
/// Get the latest block height of the target chain via Chain Tracking. | |||
type ChainTracking: GetBlockHeight<Self::TargetChain>; |
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.
Side note: we should consider adding ChainTracking to the Chainflip trait - it's getting its tentacles in everywhere.
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.
This made me think that maybe it makes sense to merge the broadcast and ingress-egress pallet actually... after all, the broadcast is egressing transactions... something we can think about anyway.
* feat: add initiated_at block number for egresses * chore: add migration for chain height addition * chore: add migration hooks
* feat: add initiated_at block number for egresses * chore: add migration for chain height addition * chore: add migration hooks
* feat: add initiated_at block number for egresses * chore: add migration for chain height addition * chore: add migration hooks
Pull Request
First PR of: PRO-689
Second PR will include the CFE side. Figured would split this since it's possible.
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
initiated_at
to the on_signature_ready_callback, such that we set it to the earliest possible block number it could be in.