-
Notifications
You must be signed in to change notification settings - Fork 350
[Stateless Proto] Add flag to set execution proof generation artificial delay #10027
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
base: master
Are you sure you want to change the base?
[Stateless Proto] Add flag to set execution proof generation artificial delay #10027
Conversation
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
…port any milestone Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
# Conflicts: # ethereum/spec/src/main/java/tech/pegasys/teku/spec/schemas/registry/SchemaRegistryBuilder.java
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
# Conflicts: # teku/src/test/java/tech/pegasys/teku/cli/options/ZkChainOptionsTest.java
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
…class Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
… validated proofs map Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
# Conflicts: # ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/executionproofs/ExecutionProofManagerImpl.java
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
# Conflicts: # ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/executionproofs/ExecutionProofGenerator.java # ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/executionproofs/ExecutionProofGeneratorImpl.java # ethereum/statetransition/src/main/java/tech/pegasys/teku/statetransition/executionproofs/ExecutionProofManagerImpl.java # ethereum/statetransition/src/test/java/tech/pegasys/teku/statetransition/executionproofs/ExecutionProofGeneratorImplTest.java # services/beaconchain/src/main/java/tech/pegasys/teku/services/beaconchain/BeaconChainController.java # services/zkchain/src/main/java/tech/pegasys/teku/services/zkchain/ZkChainConfiguration.java # teku/src/test/java/tech/pegasys/teku/cli/options/ZkChainOptionsTest.java
…' into add-flag-for-EP-generation-delay
public static final boolean DEFAULT_STATELESS_VALIDATION_ENABLED = false; | ||
public static final boolean DEFAULT_GENERATE_EXECUTION_PROOFS_ENABLED = false; | ||
public static final int DEFAULT_STATELESS_MIN_PROOFS_REQUIRED = 1; | ||
public static final Duration DEFAULT_PROOF_GENERATION_DELAY = Duration.ofSeconds(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given everything is moving to millis, i'd probably take millis here, it'll allow you less than a second delay...
private long statelessProofGenerationDelay = | ||
ZkChainConfiguration.DEFAULT_PROOF_GENERATION_DELAY.toMillis(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
along the same lines, we've got millis here, seconds other places, so being consistent will make it easier to understand.
PR Description
Adds a flag to enable custom artificial delay when generating the proofs, built on top of #10004
Fixed Issue(s)
Documentation
doc-change-required
label to this PR if updates are required.Changelog
Note
Adds a CLI option to configure artificial execution-proof generation delay and wires it through config, manager, and generator.
--Xstateless-proofs-generation-delay
option; plumb toZkChainConfiguration
asDuration proofDelayDurationInMs
with default2s
.BeaconChainController
passes configured delay toExecutionProofManagerImpl
.ExecutionProofGenerator.generateExecutionProof
to acceptDuration proofGenerationDelay
and sleep for that duration.ExecutionProofManagerImpl
stores the delay and forwards it when generating proofs; minor cleanup in validation loop.Duration.ofMillis(0)
.Written by Cursor Bugbot for commit ea1c2ef. This will update automatically on new commits. Configure here.