onflow / atree

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

Fix migration filter for old unreferenced slabs (atree inlining feature branch) #396

Closed fxamacker closed 2 months ago

fxamacker commented 2 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.