ChainSafe / forest

🌲 Rust Filecoin Node Implementation
https://forest.chainsafe.io
Apache License 2.0
638 stars 156 forks source link

Reduce code duplication between Forest and ref-fvm #1448

Closed LesnyRumcajs closed 2 years ago

LesnyRumcajs commented 2 years ago

Issue summary A lot of Forest code has been copied over to ref-fvm, including some primitives like AMT or HAMT. This makes maintenance a bit of a burden because each fix in Forest should be potentially backported to ref-fvm. On top of that, between copying the code from Forest and resolving this task, some code may not have been backported - so it may not be a straightforward delete-reuse task. Task summary

Acceptance Criteria

Other information and links We will be able to get rid of lots of code once we remove the native backend in favour of fvm. Once https://github.com/ChainSafe/forest/pull/1403 is closed this should be governed by a USE_FVM env variable.

lemmih commented 2 years ago

Most (but not all) of the code duplication has been resolved. Would it make sense to close this issue and rely on smaller issues for the last remaining crates (such as legacy_amt)?

lemmih commented 2 years ago

Closing this issue. All code has been de-duplicated except for legacy-amt which is tracked by this issue: https://github.com/ChainSafe/forest/issues/1549