-
Notifications
You must be signed in to change notification settings - Fork 38
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
[MPoW] New MPoW #261
[MPoW] New MPoW #261
Conversation
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!!! 👍
@@ -645,7 +645,7 @@ construct_runtime! { | |||
Identity: pallet_identity::{Module, Call, Storage, Event<T>}, | |||
|
|||
// Crust modules | |||
Swork: swork::{Module, Call, Storage, Event<T>, Config<T>}, | |||
Swork: swork::{Module, Call, Storage, Event<T>, Config}, |
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.
just curious about the difference between Config
and Config<T>
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.
If we have storage with generic type to initialize(config), we need this <T>
New MPoW Spec
Resolved #229
Resolved #215
Resolved #214
New open #259 #260 #262
Mechanism
⚡️ WR Reporting
added
anddeleted
, the data structure shows belowValidation process: (READ ONLY)
current_report_slot
old_file_size
matches thenew_files_size
changemerge work report: (WRITE)
success
;Pending
->Success
) -> set sOrder status to success and update order's expired;Failed
->Success
) -> set sOrder status to success;free
andused
A
;Update Identities
IdBonds
,sum up all work reports(mapping to identities) and update stake limit(staking module);Data structure
Calls
IdBonds
(TODO: [MPoW] Add max bonded restriction #262 )&Identities
WR Reporting
)Update Identities
)Test breaking
Change all swork module test cases
Other modules's affects
check_works
in market module