onflow / atree

Atree provides scalable arrays and scalable ordered maps.
https://onflow.org
Apache License 2.0
40 stars 16 forks source link

Fix migration filter for old unreferenced slabs (non-inlining feature branch) #399

Closed fxamacker closed 5 months ago

fxamacker commented 5 months ago

Closes #395

Recently, migration programs in onflow/flow-go added a flag to filter out old unreferenced slabs and onflow/atree added some functions to support that. However, some of the old unreferenced slabs are not filtered.

This issue only affects this new migration feature in onflow/flow-go:

This PR fixes the migration filter by handling nested storage ID inside element such as Cadence SomeValue.