avalanchego icon indicating copy to clipboard operation
avalanchego copied to clipboard

Refactor vm.Initialize into factory.New

Open joshua-kim opened this issue 1 year ago • 3 comments

Currently, VM instances invoke Initialize after being created by New. We can just move all initialization into Factory's New instead of having lazy-initialization pattern to simplify code.

joshua-kim avatar Jan 03 '24 18:01 joshua-kim

First PR in this running story to remove CreateStaticHandlers, which is needed because we create a new instance of the VM and tear it down just to set up our static apis. https://github.com/ava-labs/avalanchego/pull/2589

joshua-kim avatar Jan 16 '24 12:01 joshua-kim

Next PR is to refactor the feature extension code out of the VM Manager, so we can guarantee that we're returning a concrete VM type. https://github.com/ava-labs/avalanchego/pull/2578

joshua-kim avatar Jan 17 '24 04:01 joshua-kim

This issue has become stale because it has been open 60 days with no activity. Adding the lifecycle/frozen label will cause this issue to ignore lifecycle events.

github-actions[bot] avatar Apr 14 '24 00:04 github-actions[bot]