-
Notifications
You must be signed in to change notification settings - Fork 39
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
Implement the calculate spower offchain feature #944
Commits on May 17, 2024
-
1. Add WorkReportsToProcess queue which will be processed by the offc…
…hain crust-spower service. 2. Add the WorkReportMetadata to this queue when the report_works call is successful. 3. Refactor the update_files function to only calculate the changed_spower and changed_files_count based on the raw value directly. Do not invoke the market::upsert_replica and delete_replica anymore.
Configuration menu - View commit details
-
Copy full SHA for f9e6a37 - Browse repository at this point
Copy the full SHA f9e6a37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70c55dc - Browse repository at this point
Copy the full SHA 70c55dcView commit details
Commits on May 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8f60da5 - Browse repository at this point
Copy the full SHA 8f60da5View commit details
Commits on May 27, 2024
-
1. Refactor the UpdatedFilesToProcess data structure, to record the u…
…pdated files replicas info at the specific report_block 2. Add work_reports args to the update_replicas extrinsic call, which will then call the T::SworkerInterface::clear_process_work_reports to purge the successfully processed work reports from the WorkReportsToProcess db item
Configuration menu - View commit details
-
Copy full SHA for 9054268 - Browse repository at this point
Copy the full SHA 9054268View commit details
Commits on May 28, 2024
-
1. Add new events for pallet_market and pallet_swork for the update_r…
…eplicas and update_spower extrinsic call 2. Refactor some data structure names
Configuration menu - View commit details
-
Copy full SHA for 599a220 - Browse repository at this point
Copy the full SHA 599a220View commit details
Commits on May 30, 2024
-
1. Put the file info details inside the UpdatedFileToProcess structur…
…e, so that we can replay this data in crust-spower service 2. Refactor some detailed implementations for the upsert_replica and delete_replica to handle some detailed design considerations
Configuration menu - View commit details
-
Copy full SHA for 16cf42a - Browse repository at this point
Copy the full SHA 16cf42aView commit details -
1. Implement the swork::update_spower extrinsic call
2. Perform the illegal file replicas count substraction directly during the market::update_replicas call 3. Remove some unused function parameter
Configuration menu - View commit details
-
Copy full SHA for d30a270 - Browse repository at this point
Copy the full SHA d30a270View commit details
Commits on Jun 1, 2024
-
1. Refactor the market::update_replicas arguments, events, and db design
2. Refactor the WorkReportsToProcess design (include db and events)
Configuration menu - View commit details
-
Copy full SHA for 250a08e - Browse repository at this point
Copy the full SHA 250a08eView commit details
Commits on Jun 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 617d342 - Browse repository at this point
Copy the full SHA 617d342View commit details
Commits on Jun 4, 2024
-
Update the UPDATE_OFFSET from 200 to 100, which means the partial_upd…
…ate_identities function will be called starting from 500th block in a report slot, while the original value is from 400th block in a slot. The 400th ~500 th block is reserved for the spower update.
Configuration menu - View commit details
-
Copy full SHA for 1c16e5f - Browse repository at this point
Copy the full SHA 1c16e5fView commit details
Commits on Jun 6, 2024
-
1. Refactor the storage item and update_replicas process logic, don't…
… store the UpdatedFilesToProcess right now. 2. Perform the spower changed based on file_size during update_replicas 3. Add FileClosed event 4. Refactor the update_spower, which doesn't update spower per blocks of files now
Configuration menu - View commit details
-
Copy full SHA for 8b41b01 - Browse repository at this point
Copy the full SHA 8b41b01View commit details
Commits on Jun 14, 2024
-
Change the swork::update_spower call arguments type from BTreeMap to …
…Vec. The reason is that the order of items in BTreeMap are not determined, when sending tx from polkadot.js, it may fail with error 'Invalid Transaction: Transaction has a bad signature'
Configuration menu - View commit details
-
Copy full SHA for 4e96583 - Browse repository at this point
Copy the full SHA 4e96583View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30a5c53 - Browse repository at this point
Copy the full SHA 30a5c53View commit details
Commits on Jun 27, 2024
-
1. Make the market::update_replicas charge no fee as this is a freque…
…nt management extrinsic 2. Fix bug for update_replicas with non-exist cids, need to add to the illegal_file_replicas_map as well under this scenario 3. Use valid_at as the value of created_at 4. Update the calculated_at field during maybe_reward_liquidator 5. Update the calculate_spower to use the latest spower calculation logic
Configuration menu - View commit details
-
Copy full SHA for 794b0b5 - Browse repository at this point
Copy the full SHA 794b0b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d049b1b - Browse repository at this point
Copy the full SHA d049b1bView commit details -
1. Fix bug in update_illegal_file_replicas_count() method, need to us…
…e get_current_reported_slot() instead of current_report_slot() 2. Charge no fee for swork::update_spower extrinsic, since this is a frequent management call 3. Remove unused commented out codes
Configuration menu - View commit details
-
Copy full SHA for 37f9e06 - Browse repository at this point
Copy the full SHA 37f9e06View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef3aecc - Browse repository at this point
Copy the full SHA ef3aeccView commit details -
Configuration menu - View commit details
-
Copy full SHA for a96d513 - Browse repository at this point
Copy the full SHA a96d513View commit details
Commits on Jun 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7cd54b6 - Browse repository at this point
Copy the full SHA 7cd54b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e641b7b - Browse repository at this point
Copy the full SHA e641b7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 174ba68 - Browse repository at this point
Copy the full SHA 174ba68View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4a15b5 - Browse repository at this point
Copy the full SHA a4a15b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb3cc51 - Browse repository at this point
Copy the full SHA eb3cc51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3307965 - Browse repository at this point
Copy the full SHA 3307965View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5afa3dd - Browse repository at this point
Copy the full SHA 5afa3ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1185b39 - Browse repository at this point
Copy the full SHA 1185b39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0752e8a - Browse repository at this point
Copy the full SHA 0752e8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6608116 - Browse repository at this point
Copy the full SHA 6608116View commit details -
Configuration menu - View commit details
-
Copy full SHA for b636f1d - Browse repository at this point
Copy the full SHA b636f1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e0fe370 - Browse repository at this point
Copy the full SHA e0fe370View commit details -
Configuration menu - View commit details
-
Copy full SHA for e040df2 - Browse repository at this point
Copy the full SHA e040df2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06adc52 - Browse repository at this point
Copy the full SHA 06adc52View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1137afc - Browse repository at this point
Copy the full SHA 1137afcView commit details -
Configuration menu - View commit details
-
Copy full SHA for ca4aa01 - Browse repository at this point
Copy the full SHA ca4aa01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5823b54 - Browse repository at this point
Copy the full SHA 5823b54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 242f283 - Browse repository at this point
Copy the full SHA 242f283View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebbbbe8 - Browse repository at this point
Copy the full SHA ebbbbe8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce63ce8 - Browse repository at this point
Copy the full SHA ce63ce8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cbb684 - Browse repository at this point
Copy the full SHA 1cbb684View commit details -
Configuration menu - View commit details
-
Copy full SHA for db42e8d - Browse repository at this point
Copy the full SHA db42e8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c6139c - Browse repository at this point
Copy the full SHA 7c6139cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 98761ec - Browse repository at this point
Copy the full SHA 98761ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for e125def - Browse repository at this point
Copy the full SHA e125defView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4aeae46 - Browse repository at this point
Copy the full SHA 4aeae46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75734db - Browse repository at this point
Copy the full SHA 75734dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e95657 - Browse repository at this point
Copy the full SHA 3e95657View commit details -
Configuration menu - View commit details
-
Copy full SHA for f797dfb - Browse repository at this point
Copy the full SHA f797dfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba5abd7 - Browse repository at this point
Copy the full SHA ba5abd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab2eeaa - Browse repository at this point
Copy the full SHA ab2eeaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1faffa2 - Browse repository at this point
Copy the full SHA 1faffa2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55138b7 - Browse repository at this point
Copy the full SHA 55138b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 477229c - Browse repository at this point
Copy the full SHA 477229cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e17b537 - Browse repository at this point
Copy the full SHA e17b537View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99ca6fd - Browse repository at this point
Copy the full SHA 99ca6fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 629f17c - Browse repository at this point
Copy the full SHA 629f17cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 36eab47 - Browse repository at this point
Copy the full SHA 36eab47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42b221e - Browse repository at this point
Copy the full SHA 42b221eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fdf39e - Browse repository at this point
Copy the full SHA 3fdf39eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d55b53 - Browse repository at this point
Copy the full SHA 1d55b53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73b1e16 - Browse repository at this point
Copy the full SHA 73b1e16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18224f7 - Browse repository at this point
Copy the full SHA 18224f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94fe0b1 - Browse repository at this point
Copy the full SHA 94fe0b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc930ce - Browse repository at this point
Copy the full SHA bc930ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9d8332 - Browse repository at this point
Copy the full SHA e9d8332View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9dcb49b - Browse repository at this point
Copy the full SHA 9dcb49bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8a4813 - Browse repository at this point
Copy the full SHA c8a4813View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10b9f73 - Browse repository at this point
Copy the full SHA 10b9f73View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef5f0d3 - Browse repository at this point
Copy the full SHA ef5f0d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9e0bfa - Browse repository at this point
Copy the full SHA b9e0bfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 50d93fd - Browse repository at this point
Copy the full SHA 50d93fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for eed4039 - Browse repository at this point
Copy the full SHA eed4039View commit details -
Configuration menu - View commit details
-
Copy full SHA for 960171d - Browse repository at this point
Copy the full SHA 960171dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 252f754 - Browse repository at this point
Copy the full SHA 252f754View commit details -
Configuration menu - View commit details
-
Copy full SHA for 847197f - Browse repository at this point
Copy the full SHA 847197fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32707aa - Browse repository at this point
Copy the full SHA 32707aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for d03d1da - Browse repository at this point
Copy the full SHA d03d1daView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad21a49 - Browse repository at this point
Copy the full SHA ad21a49View commit details -
Configuration menu - View commit details
-
Copy full SHA for c1f5027 - Browse repository at this point
Copy the full SHA c1f5027View commit details -
Configuration menu - View commit details
-
Copy full SHA for f099dca - Browse repository at this point
Copy the full SHA f099dcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fcd50c - Browse repository at this point
Copy the full SHA 7fcd50cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d3a7d0 - Browse repository at this point
Copy the full SHA 4d3a7d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e207155 - Browse repository at this point
Copy the full SHA e207155View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10eb0e3 - Browse repository at this point
Copy the full SHA 10eb0e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff33b05 - Browse repository at this point
Copy the full SHA ff33b05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f7fcf4 - Browse repository at this point
Copy the full SHA 4f7fcf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ea7703 - Browse repository at this point
Copy the full SHA 9ea7703View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7f2d37 - Browse repository at this point
Copy the full SHA d7f2d37View commit details -
Configuration menu - View commit details
-
Copy full SHA for de7c327 - Browse repository at this point
Copy the full SHA de7c327View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0dd8e17 - Browse repository at this point
Copy the full SHA 0dd8e17View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5a8abd - Browse repository at this point
Copy the full SHA b5a8abdView commit details -
Configuration menu - View commit details
-
Copy full SHA for dda9161 - Browse repository at this point
Copy the full SHA dda9161View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9706da - Browse repository at this point
Copy the full SHA e9706daView commit details -
1. Add WorkReportsToProcess queue which will be processed by the offc…
…hain crust-spower service. 2. Add the WorkReportMetadata to this queue when the report_works call is successful. 3. Refactor the update_files function to only calculate the changed_spower and changed_files_count based on the raw value directly. Do not invoke the market::upsert_replica and delete_replica anymore.
Configuration menu - View commit details
-
Copy full SHA for b826935 - Browse repository at this point
Copy the full SHA b826935View commit details -
Configuration menu - View commit details
-
Copy full SHA for 579d19e - Browse repository at this point
Copy the full SHA 579d19eView commit details -
1. Add new events for pallet_market and pallet_swork for the update_r…
…eplicas and update_spower extrinsic call 2. Refactor some data structure names
Configuration menu - View commit details
-
Copy full SHA for beb668f - Browse repository at this point
Copy the full SHA beb668fView commit details -
1. Implement the swork::update_spower extrinsic call
2. Perform the illegal file replicas count substraction directly during the market::update_replicas call 3. Remove some unused function parameter
Configuration menu - View commit details
-
Copy full SHA for 77818db - Browse repository at this point
Copy the full SHA 77818dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for cea8403 - Browse repository at this point
Copy the full SHA cea8403View commit details
Commits on Jun 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e65f77a - Browse repository at this point
Copy the full SHA e65f77aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0325126 - Browse repository at this point
Copy the full SHA 0325126View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e05661 - Browse repository at this point
Copy the full SHA 6e05661View commit details -
Configuration menu - View commit details
-
Copy full SHA for e642db9 - Browse repository at this point
Copy the full SHA e642db9View commit details -
Configuration menu - View commit details
-
Copy full SHA for bff2821 - Browse repository at this point
Copy the full SHA bff2821View commit details