You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The chain type ties together the required functionality of building/parsing/executing/accepting blocks (as well as PreExecute for the mempool), which is used by the VM.
Implement the equivalent functionality for the DSMR package (excluding pre-execute since this will be handled at the mempool layer):
typeChaininterface {
// BuildBlock produces a new chunk based block skipping any duplicates that have either already been accepted// or are included in the processing ancestry of parent.BuildBlock(ctx context.Context, parentExecutedBlock) (ExecutionBlock, error)
// Execute executes the given block with the provided parent (guaranteed to have been executed successfully).// Execute verifies each chunk certificate as valid within the current epoch and Execute(ctx context.Context, parentBlockExecutedBlock, blockExecutionBlock) (ExecutedBlock, error)
// ParseBlock returns an execution block that can be executed against its parent.ParseBlock(ctx context.Context, bytes []byte) (ExecutionBlock, error)
// AcceptBlock accepts the given executed block, re-assembles the inner block, and executes the inner block.AcceptBlock(ctx context.Context, parentAcceptedBlock, blockExecutedBlock) (AcceptedBlock, error)
}
The text was updated successfully, but these errors were encountered:
The chain type ties together the required functionality of building/parsing/executing/accepting blocks (as well as PreExecute for the mempool), which is used by the VM.
Implement the equivalent functionality for the DSMR package (excluding pre-execute since this will be handled at the mempool layer):
The text was updated successfully, but these errors were encountered: