-
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
fix: deposit channel expiry #3998
Changes from all commits
8c22145
b7df944
b488488
103c2b6
c742fcb
6980f04
dbed6f4
6704800
4a8d670
999ec1c
a635455
c323910
e19d256
6c68be5
1b271e7
ca470a1
27d1541
29f2fb6
b510bef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,11 @@ where | |
// FOr a given header we only witness addresses opened at or before the header, the set of | ||
// addresses each engine attempts to witness at a given block is consistent | ||
fn addresses_for_header(index: Inner::Index, addresses: &Addresses<Inner>) -> Addresses<Inner> { | ||
addresses.iter().filter(|details| details.opened_at <= index).cloned().collect() | ||
addresses | ||
.iter() | ||
.filter(|details| details.opened_at <= index && index <= details.expires_at) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I'd prefer if we use an exclusive upper bound here. This is more consistent with ranges in general (opened_at..expires_at). Also it seems odd that we can submit something at the block in which it expires. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inclusive end is consistent with how we witness everything else, the external chain block number for the vault rotation, is witnessed by the previous authority set, i.e. to the previous set, it's inclusive of the range they witness, which is why I made it inclusive |
||
.cloned() | ||
.collect() | ||
} | ||
|
||
async fn get_chain_state_and_addresses<StateChainClient: StorageApi + Send + Sync + 'static>( | ||
|
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 is a breaking change to the api. SDK will probably need to be updated.
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.
Yeah, linked the companion PR in the description