Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion proto/src/proto/executor/v1/executor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ enum ExecutorError {
EXECUTOR_ERROR_SM_MAIN_HASHPDIGEST_ADDRESS_NOT_FOUND = 30;
// EXECUTOR_ERROR_SM_MAIN_HASHPDIGEST_NOT_COMPLETED indicates that the hash has not been completed while calling a Poseidon hash digest
EXECUTOR_ERROR_SM_MAIN_HASHPDIGEST_NOT_COMPLETED = 31;
// EXECUTOR_ERROR_SM_MAIN_MEMALIGN_OFFSET_OUT_OF_RANGE indicates that the an offset register value is out of range while doing a mem align operation
// EXECUTOR_ERROR_SM_MAIN_MEMALIGN_OFFSET_OUT_OF_RANGE indicates that an offset register value is out of range while doing a mem align operation
EXECUTOR_ERROR_SM_MAIN_MEMALIGN_OFFSET_OUT_OF_RANGE = 32;
// EXECUTOR_ERROR_SM_MAIN_MULTIPLE_FREEIN indicates that we got more than one free inputs in one ROM instruction
EXECUTOR_ERROR_SM_MAIN_MULTIPLE_FREEIN = 33;
Expand Down
2 changes: 1 addition & 1 deletion state/runtime/executor/executor.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion state/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ var (
ErrExecutorSMMainHashPDigestAddressNotFound = errors.New("address has not been found while calculating a Poseidon hash digest")
// ErrExecutorSMMainHashPDigestNotCompleted indicates that the hash has not been completed while calling a Poseidon hash digest
ErrExecutorSMMainHashPDigestNotCompleted = errors.New("hash has not been completed while calling a Poseidon hash digest")
// ErrExecutorSMMainMemAlignOffsetOutOfRange indicates that the an offset register value is out of range while doing a mem align operation
// ErrExecutorSMMainMemAlignOffsetOutOfRange indicates that an offset register value is out of range while doing a mem align operation
ErrExecutorSMMainMemAlignOffsetOutOfRange = errors.New("offset register value is out of range while doing a mem align operation")
// ErrExecutorSMMainMultipleFreeIn indicates that we got more than one free inputs in one ROM instruction
ErrExecutorSMMainMultipleFreeIn = errors.New("more than one free inputs in one ROM instruction")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (l *l1RollupInfoConsumerStatistics) onReset() {

func (l *l1RollupInfoConsumerStatistics) onStartProcessIncommingRollupInfoData(rollupInfo rollupInfoByBlockRangeResult) string {
now := time.Now()
// Time have have been blocked in the select statement
// Time have been blocked in the select statement
waitingTimeForData := now.Sub(l.startStepTime)
blocksPerSecond := float64(l.numProcessedBlocks) / time.Since(l.startTime).Seconds()
generatedWarning := false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func TestGetModeForProcessBatchReprocessMode(t *testing.T) {
testData.stateCurrentBatch.StateRoot = state.ZeroHash
processData, err := testData.sut.GetModeForProcessBatch(testData.trustedNodeBatch, testData.stateCurrentBatch, testData.statePreviousBatch, "test")
require.NoError(t, err)
require.Equal(t, l2_shared.ReprocessProcessMode, processData.Mode, "local batch doesnt have stateRoot but exists, so so it needs to be reprocess")
require.Equal(t, l2_shared.ReprocessProcessMode, processData.Mode, "local batch doesnt have stateRoot but exists, so it needs to be reprocess")
require.Equal(t, true, processData.BatchMustBeClosed, "the trustedNode batch is closed")
require.Equal(t, testData.statePreviousBatch.StateRoot, processData.OldStateRoot, "the old state root is the previous batch SR")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func NewCheckSyncStatusToProcessBatch(zkevmRPCClient syncinterfaces.ZKEVMClientG
// CheckL1SyncGlobalExitRootEnoughToProcessBatch returns nil if the are sync and could process the batch
// if not:
// - returns syncinterfaces.ErrMissingSyncFromL1 if we are behind the block number that contains the GlobalExitRoot
// - returns l2_shared.NewDeSyncPermissionlessAndTrustedNodeError if trusted and and permissionless are not in same page! pass also the discrepance point
// - returns l2_shared.NewDeSyncPermissionlessAndTrustedNodeError if trusted and permissionless are not in same page! pass also the discrepancy point
func (c *CheckSyncStatusToProcessBatch) CheckL1SyncGlobalExitRootEnoughToProcessBatch(ctx context.Context, batchNumber uint64, globalExitRoot common.Hash, dbTx pgx.Tx) error {
// Find out if this node have GlobalExitRoot
// If not: ask to zkevm-RPC the block number of this GlobalExitRoot
Expand Down