Skip to content
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

Enhancement/2004 Add debug api for patchTimestamps #2094

Open
wants to merge 2 commits into
base: v4.0.0
Choose a base branch
from

Conversation

PropzSaladaz
Copy link

@PropzSaladaz PropzSaladaz commented Feb 5, 2025

Description

  • Added new RPC debug function that returns all patchTimestamps
  • Only callable when debug API is enabled

Example call:

curl -X POST --data '{"jsonrpc":"2.0","method":"debug_getPatchTimestamps","params":null,"id":1205}' <http_endpoint>

Example response:

{"id":1205,"jsonrpc":"2.0","result":{"contractStoragePatchTimestamp":1681732800,"contractStorageZeroValuePatchTimestamp":1681128000,"correctForkInPowPatchTimestamp":1710331200,"eIP1559TransactionsPatchTimestamp":1721818800,"externalGasPatchTimestamp":1727712000,"fastConsensusPatchTimestamp":1721822400,"flexibleDeploymentPatchTimestamp":1721826000,"powCheckPatchTimestamp":1702296000,"precompiledConfigPatchTimestamp":1710331200,"pushZeroPatchTimestamp":1710331200,"revertableFSPatchTimestamp":1681473600,"selfdestructStorageLimitPatchTimestamp":0,"skipInvalidTransactionsPatchTimestamp":1702382400,"storageDestructionPatchTimestamp":1702393200,"verifyBlsSyncPatchTimestamp":1721829600,"verifyDaSigsPatchTimestamp":1681300800}}

Tests

  • debugGetPatchTimestamps
    • Compares the output of RPC call to the timestamps defined in the config file.

Fixes #2004

Note

This pr is replicate from a closed pr that included non-signed commits: #2077

@PropzSaladaz PropzSaladaz added the enhancement New feature or request label Feb 5, 2025
@PropzSaladaz PropzSaladaz self-assigned this Feb 5, 2025
@PropzSaladaz PropzSaladaz changed the title Add debug api for patchTimestamps Enhancement/2004 Add debug api for patchTimestamps Feb 5, 2025
@PropzSaladaz PropzSaladaz linked an issue Feb 5, 2025 that may be closed by this pull request
@PropzSaladaz PropzSaladaz removed the enhancement New feature or request label Feb 6, 2025
@DmytroNazarenko DmytroNazarenko added this to the SKALE 4.0 milestone Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add debug API to check PatchTimestamp activation
3 participants