Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

chain-spec: support for json config/patch (and GenesisBuilder API) #7508

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Commits on Jul 17, 2023

  1. Configuration menu
    Copy the full SHA
    d8fc2ca View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. Configuration menu
    Copy the full SHA
    9d6fc63 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f0581a View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. rococo-runtime: EpochDurationInBlock is controlled by feature

    New feature fast-runtime-10m was added.
    
    This adds new rococo-runtime blob with hard-coded epochDuration. This
    prevents from manipulating the state to change the runtime constants.
    
    This commit also allows to remove `RococoGenesisExt` hack.
    michalkucharczyk committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    f6a65f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    52b4d8c View commit details
    Browse the repository at this point in the history
  3. chain-specs: RuntimeGenesisConfig remove, JSON patches added

    In this commit:
    - all references to `RuntimeGenesisConfig` are removed,
    - `RococoGenesisExt` is removed. It was the hack to allow overwriting `EpochDurationInBlocks` (1m/10m/60m rococo runtimes are now available),
    - all `(kusama|polkadot|versi|rococo|wococo)_(staging|dev)_genesis_config` functions now return the JSON patch for default runtime `GenesisConfig`,
    - ChainSpecBuilder is used, `from_gensis` is removed,
    michalkucharczyk committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    cfc2dcb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ae9f732 View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'origin/master' into mku-chain-spec-supp…

    …ort-for-genesis-builder-api
    michalkucharczyk committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    cf31128 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    39d2de3 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2023

  1. Configuration menu
    Copy the full SHA
    352bbb0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b4f54b7 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. rococo-runtime: pre-built variants removed

    Explicitly building fast-runtime version of rococo runtime is no longer
    done.
    
    Environment variables which control the time::EpochDurationInBlocks value were added:
    - ROCOCO_FAST_RUNTIME - enables the fast runtime version of runtime with
      default value of EpochDurationInBlocks set to 10. Value of env does
      not matter.
    - ROCOCO_EPOCH_DURATION - enables the fast runtime version with provided
      value of EpochDurationInBlocks (epoch duration will be set to the
      value of env).
    
    Examples:
    - to build runtime for `versi_staging_testnet_config which had
      EpochDurationInBlocks set to 100:
    ```
    ROCOCO_EPOCH_DURATION=100 cargo build -p rococo
    ```
    - to build runtime for `versi_staging_testnet_config which had
      EpochDurationInBlocks set to 100:
    ```
    ROCOCO_EPOCH_DURATION=100 cargo build -p rococo-runtime
    ```
    - to build runtime for `wococo_development`
    ```
    ROCOCO_EPOCH_DURATION=10 cargo build -p rococo-runtime
    or
    ROCOCO_FAST_RUNTIME=1 cargo build -p rococo-runtime
    ```
    michalkucharczyk committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    0229867 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. warnings fixed

    michalkucharczyk committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    3d7412e View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'origin/master' into mku-chain-spec-supp…

    …ort-for-genesis-builder-api
    parity-processbot committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    f5c1337 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/master' into mku-chain-spec-supp…

    …ort-for-genesis-builder-api
    michalkucharczyk committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    d417107 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. Merge remote-tracking branch 'origin/master' into mku-chain-spec-supp…

    …ort-for-genesis-builder-api
    parity-processbot committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    6dfe988 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2023

  1. Merge remote-tracking branch 'origin/master' into mku-chain-spec-supp…

    …ort-for-genesis-builder-api
    parity-processbot committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    aa5760b View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. Configuration menu
    Copy the full SHA
    478b332 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9078fab View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    18ee1ab View commit details
    Browse the repository at this point in the history