File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -309,11 +309,17 @@ func (e *EthereumExecutionModule) unwindToCommonCanonical(sd *execctx.SharedDoma
309309 }
310310 }
311311
312+ n := currentHeader .Number .Uint64 ()
313+ randomNumber , _ := math .RandInt64 ()
314+ if randomNumber % 2 == 0 {
315+ n --
316+ }
317+
312318 if err := e .hook .BeforeRun (tx , true ); err != nil {
313319 return err
314320 }
315321
316- if err := e .executionPipeline .UnwindTo (currentHeader . Number . Uint64 () , stagedsync .ExecUnwind , tx ); err != nil {
322+ if err := e .executionPipeline .UnwindTo (n , stagedsync .ExecUnwind , tx ); err != nil {
317323 return err
318324 }
319325 if err := e .executionPipeline .RunUnwind (sd , tx ); err != nil {
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ func ExecV3(ctx context.Context,
129129 if execStage .state .unwindPoint != nil {
130130 fmt .Println ("unwindPoint" , * execStage .state .unwindPoint )
131131 }
132+
132133 if execStage .state .prevUnwindPoint != nil {
133134 fmt .Println ("previousUnwindPoint" , * execStage .state .prevUnwindPoint )
134135 }
You can’t perform that action at this time.
0 commit comments