-
Notifications
You must be signed in to change notification settings - Fork 36
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: migration: sector deal ids index cached #210
Closed
Closed
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
cdc4fa4
feat: Add SectorDealIDs with CBOR serialization
snissn c1a758f
feat: Introduce SectorDeals mapping in market state
snissn a08aa8f
temp: Add logging for sectorToDealIdHamtCid and minerAddr in migration
snissn f7b3f39
Add HamtCid struct and its CBOR serialization methods
snissn d7f9e76
commit -m "Enhance miner migration and introduce market migration
snissn f4616ba
forgot the file for market migration
snissn b7c927f
Refactor migration logic and streamline market actor updates.
snissn 3d217c0
Rename variables for clarity in market actor migration code
snissn c4ec6a7
Save the new market state object to the datastore and set the migrate…
snissn 2600de7
bugfixes: Update migration logic to use v12 market state
snissn ca993fe
xxx remove migration for testing
snissn 435c9c8
Revert "xxx remove migration for testing"
snissn b97547c
bufix: place RunMigration after the initial set up work to find the m…
snissn 1909372
feat(miner): Implement Migration Cache in Miner Migrator
snissn 0c8a77a
save to sector index hamt to cache after doing all the work!
snissn c4ef84e
bugfix: use market11cid for code
snissn 232b1c8
bugfix: use MarketKey for market11cid
snissn a785f26
add hamt lock
snissn b4865b9
use cbor gen for cid
snissn 778d677
remove duplicate code block
snissn e7a1505
pass lock by reference
snissn 676a62c
Optimize and refactor miner migration logic
snissn 26084d2
Merge branch 'master' into mikers/sector_deal_ids_index_cached
snissn 98270db
match naming conventions for MinerPrevSectorDealIndexKey
snissn da0545e
match naming conventions for MarketSectorIndexKey
snissn d84d293
remove redundant comment
snissn a697049
remove confusing comment
snissn 7c7b469
remove unused variable in function
snissn 16b4ec5
epxlain comment
snissn ffbf314
online the Put command for simplicity
snissn 606d9d5
Update deal state schema to match Rust (#215)
anorth dd380ea
feat: Enhance migration handling with deferredCodeIDs
snissn ba81ee8
initailize lock otherwise we have a nil pointer
snissn f35b49f
Refactor minerMigrator to use adt.Map for sectorDeals
snissn 1f8f23b
rename mutex to more explicit name
snissn a6c9c22
dereference pointer before calling Lock() - not sure why previously c…
snissn 69de893
Revert "dereference pointer before calling Lock() - not sure why prev…
snissn 095e597
adding print statements for the miner address -> hamt
snissn 0df532a
Enhance migration logic to handle dual CIDs and extend cache function…
snissn a56af3d
Revert "Enhance migration logic to handle dual CIDs and extend cache …
snissn 465d700
Refactor Miner State Migration Logic
snissn a008d02
look up prevInRoot here, not inRoot. We won't have a cached result fo…
snissn 190fe18
chain errors
snissn 56dc952
Update builtin/v12/migration/top.go
snissn be33517
Merge branch 'mikers/sector_deal_ids_index_cached' of https://github.…
snissn 7f7613b
remove old todo
snissn a9745f4
fix error message
snissn 4f851d5
add error message
snissn 740b22b
better name for hamt
snissn f791133
cleanup errors
snissn 0a40559
Update HAMT Handling in Miner Migration
snissn 869619d
remove verifreg.AllocationId based on fip-0076 requirements
snissn eae58d8
Enhanced miner migration logic with deal-to-sector indexing
snissn 43bda09
remove delete from m.dealToSectorIndex because of algorithmic tradeof…
snissn f5a7345
Migrate market states to v12 and update deal states
snissn 4e83d01
Rename 'States' field to 'DealStates' in v12 market
snissn badebde
lotus fails to build these errors:
snissn 88f5efe
Refactor dealToSectorIndex to use sync.Map
snissn d731666
Refactor migration logic to incorporate caching previous deal states
snissn 99548ca
handle errors
snissn 6856ec7
add err handler and minor refactor formatting if statements
snissn 143bddb
Revert "add err handler and minor refactor formatting if statements"
snissn f197c10
add err handler
snissn 6ae71c1
prints for debugging
snissn efc66d1
adding more print statements for debugging and cleaning up an if stat…
snissn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.
I think?