Skip to content

Sync coreth vmerrors/errors.go and use them #1747

@JonathanOppenheimer

Description

@JonathanOppenheimer

As of right now, there are number of errors in coreth, that need to be used

https://github.com/ava-labs/coreth/blob/master/plugin/evm/vmerrors/errors.go

For example, in buildBlockWithContext(), we use ErrGenerateBlockFailed in coreth but not in subnet-evm even though the case that triggers the error also happens in subnet-evm

or in wrapped_block.go's verify():

if err := b.semanticVerify(); err != nil {
		return fmt.Errorf("failed to verify block: %w", err)
	}

when we could use ErrBlockVerificationFailed.

These changes need to be synced in between the two.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions