Skip to content

feat: snowman/adaptor package #3866

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

feat: snowman/adaptor package #3866

wants to merge 1 commit into from

Conversation

ARR4N
Copy link
Contributor

@ARR4N ARR4N commented Apr 7, 2025

Why this should be merged

The block.ChainVM and snowman.Block interfaces typically require that the Block implementation knows about the VM, which is a bit clunky. This unclunks things.

How this works

The Verify(), Accept(), and Reject() methods are moved onto a generic ChainVM[B] interface, where B is required to implement all other methods of snowman.Block. A minimal adaptor converts from adaptor.ChainVM to block.ChainVM.

How this was tested

TBD

Need to be documented in RELEASES.md?

No

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant