-
Notifications
You must be signed in to change notification settings - Fork 760
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
Add BlockNumberProvider to salary pallet config #7000
base: master
Are you sure you want to change the base?
Changes from 1 commit
6481857
0e650b6
4359f23
7752f6c
52790c5
cb119b0
bdd0727
77741b3
a31302c
a071803
47e7079
331469e
5cea0ca
30cc991
25053cc
e53d8b9
0de9976
b208d52
606812b
1cbf8bd
0a47eb6
cbc90eb
724795d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,7 @@ pub mod v1 { | |
/// use relay current - ((current local - local) * equivalent_block_duration) | ||
fn equivalent_moment_in_time(local: L) -> N; | ||
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. Can you put some example in the doc of this please? Just some pseudo code of how it is supposed to be called. 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. Have updated the docs for each function. Let me know if sufficient |
||
|
||
/// Returns the equivalent time duration as the previous type when represented as the new | ||
/// Returns the equivalent time duration as the previous type when represented as the new | ||
/// type | ||
/// | ||
/// For instance - If you previously had 12s blocks and are now following the relay chain's | ||
|
@@ -118,7 +118,7 @@ pub mod v1 { | |
}, | ||
); | ||
|
||
T::DbWeight::get().reads_writes(transactions, transactions) | ||
T::DbWeight::get().reads_writes(transactions, transactions) | ||
} | ||
|
||
#[cfg(feature = "try-runtime")] | ||
|
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.
same maybe better to make it general if
local > block_number
, to be safe if this code gets copied and pasted.