1. Dec 08, 2022
  2. Dec 07, 2022
    • Michal Kucharczyk's avatar
      zombienet: warp-sync integration test added (#12675) · 39cb3b06
      Michal Kucharczyk authored
      * zombienet: warp-sync integration test added
      
      * spelling
      
      * Readme corrected
      
      * dir name updated
      
      * Check second phase of warp sync
      
      * zombienet pipeline enable + naive test network
      
      * zombienet stage added
      
      * paritypr/substrate-debug image added for zombienet testing
      
      * debugs added
      
      * debugs added
      
      * buildah problem fixed
      
      * rollback
      
      * runner tag
      
      * test name corrected
      
      * dir renamed (regex problem)
      
      * common code clean up
      
      * common code clean up
      
      * fix
      
      * warp sync test improvements
      
      * full sha used
      
      as short is too short (https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2051228#L38
      
      )
      
      * disable tracing for nodes
      
      * COMMON_USER -> DOCKERIO_USER
      
      * refs reworked
      
      * paritypr/substrate image used
      
      * DOCKERIO -> DOCKER
      
      * generate-ws-db toml cleanup
      
      * improvements
      
      * fix
      
      * raw chain spec used
      
      * zombienet v1.3.18 used
      
      * zombienet: warp sync test enabled
      
      * chain-spec path corrected
      
      * log parsing improved
      
      Checking if log does not container error or verification failed messages
      
      * warp sync test: removed validators
      
      * fix
      
      * review remarks applied
      
      * dir test name changed: 0000_block_building -> 0000-block-building
      
      * transaction finalized test added
      
      * transaction finalized test: error handling improved
      
      * trigger CI job
      
      * trigger CI job
      
      * trigger CI job
      
      * trigger CI job
      
      * Explicitly touch `version.rs` to invalidate the related cache
      
      * zombienet add logs as artifacts
      
      * Revert "Explicitly touch `version.rs` to invalidate the related cache"
      
      This reverts commit 9d00ccfe897a280581156c281961a32665dba6d5.
      
      * file naming changed
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: Vladimir Istyufeev's avatarVladimir Istyufeev <[email protected]>
      Co-authored-by: default avatarJavier Viola <[email protected]>
      39cb3b06
    • João Paulo Silva de Souza's avatar
      Implement crate publishing on CI (#12768) · 8751f88f
      João Paulo Silva de Souza authored
      
      
      * implement crate publishing from CI
      
      * fix indentation
      
      * use resource_group for job exclusivity
      
      ensure that at most one instance of the publish-crates job is running at any given time to prevent race conditions
      
      * correct publish = false
      
      * Remove YAML anchors as GitLab's `extends:` doesn't need it
      
      * Temporarily force cache upload for the new jobs
      
      * Revert `RUSTY_CACHIER_FORCE_UPLOAD`
      
      * pin libp2p-tcp=0.37.0 for sc-telemetry
      
      * Revert "pin libp2p-tcp=0.37.0 for sc-telemetry"
      
      This reverts commit 29146bfad6c31e8cf0e2f17ad92a71bb81a373af.
      
      * always collect generated crates
      
      * increase timeout for publish-crates-template
      
      * Force upload the new job cache again
      
      * Revert "Force upload the new job cache again"
      
      This reverts commit 5a5feee1b2c51fdef768b25a76be4c3949ec1c99.
      
      * reformat
      
      * improve timeout explanation
      
      * s/usual/average
      
      Co-authored-by: Vladimir Istyufeev's avatarVladimir Istyufeev <[email protected]>
      8751f88f
    • Muharem Ismailov's avatar
      bench assert update (#12866) · 3b9d781a
      Muharem Ismailov authored
      3b9d781a
    • Alexander Theißen's avatar
      Remove sandboxing host function interface (#12852) · 32578cb0
      Alexander Theißen authored
      * Remove sandboxing interface
      
      * Remove unused struct
      32578cb0
    • Muharem Ismailov's avatar
      Refund referendum submission deposit (#12788) · 198faaa6
      Muharem Ismailov authored
      
      
      * optinal submission deposit and migration
      
      * refund submission deposit call, test, bench
      
      * try runtime fixes
      
      * assert for bench
      
      * Only refund cancelled/approved referenda deposits
      
      * update storage version
      
      Co-authored-by: default avatarGav <[email protected]>
      198faaa6
    • Adrian Catangiu's avatar
      Mmr persist state (#12822) · 1657feae
      Adrian Catangiu authored
      
      
      client/mmr: persisting gadget state across runs
      
      Fixes #12780
      
      * client/mmr: on init do canonicalization catch-up
      
      * client/mmr: add more tests
      
      * client/mmr: persist gadget progress in aux db
      
      * client/mmr: add more tests
      
      * client/mmr: replace async_std with tokio
      
      * remove leftover comment
      
      * address review comments
      
      Signed-off-by: default avataracatangiu <[email protected]>
      1657feae
  3. Dec 06, 2022
  4. Dec 05, 2022
  5. Dec 04, 2022
    • Bastian Köcher's avatar
      frame-executive: Reject invalid inherents in the executive (#12365) · 1943e25c
      Bastian Köcher authored
      
      
      * frame-executive: Reject invalid inherents in the executive
      
      We already had support for making a block fail if an inherent returned, but it was part of the
      signed extension `CheckWeight`. Rejecting blocks with invalid inherents should happen on the
      `frame-executive` level without requiring any special signed extension. This is crucial to prevent
      any kind of spamming of the network that could may happen with blocks that include failing inherents.
      
      * FMT
      
      * Update frame/executive/src/lib.rs
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * Update primitives/runtime/src/transaction_validity.rs
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      1943e25c
  6. Dec 03, 2022
  7. Dec 02, 2022
  8. Dec 01, 2022
  9. Nov 30, 2022
  10. Nov 29, 2022
  11. Nov 28, 2022
    • joe petrowski's avatar
      Remove Default, HasCompact, and TypeInfo trait bounds on AssetId (#12740) · d56214c2
      joe petrowski authored
      * Remove Default, HasCompact, and TypeInfo trait bounds on AssetId
      
      * don't use default in benchmarking
      
      * add helper trait
      
      * add helper to assets tx payment test
      
      * docs fixes
      
      * i'm confused
      
      * aha, cargo
      
      * move affected dispatchable calls into new indices
      
      * Helper -> BenchmarkHelper
      
      * benchmark use of helper
      
      * actually, don't break every call interface
      
      * use into on AssetIdParameter
      
      * Remove From from AssetIdParameter and use it in BenchmarkHelper
      
      * include from
      
      Co-authored-by: parity-processbot <>
      d56214c2
    • Adrian Catangiu's avatar
      client/beefy: fix on-demand justifications sync for old blocks (#12767) · 2d4126d2
      Adrian Catangiu authored
      
      
      * client/beefy: fix on-demand justif sync for old blocks
      
      When receiving BEEFY justifications for old blocks the state might
      be pruned for them, in which case justification verification fails
      because BEEFY validator set cannot be retrieved from runtime state.
      
      Fix this by having the voter give the validator set to the
      `OnDemandJustificationsEngine` as request information. On receiving
      a BEEFY justification for requested block, the provided validator
      set will be used to validate the justification.
      
      Signed-off-by: default avataracatangiu <[email protected]>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * impl review suggestions
      
      * client/beefy: fail initialization if state unavailable
      
      * beefy: remove spammy log
      
      Signed-off-by: default avataracatangiu <[email protected]>
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      2d4126d2
  12. Nov 27, 2022
    • Bastian Köcher's avatar
      ed25519_verify: Support using dalek for historical blocks (#12661) · 0c934a93
      Bastian Köcher authored
      
      
      * ed25519_verify: Support using dalek for historical blocks
      
      The switch from `ed25519-dalek` to `ed25519-zebra` was actually a breaking change. `ed25519-zebra`
      is more permissive. To support historical blocks when syncing a chain this pull request introduces
      an externalities extension `UseDalekExt`. This extension is just used as a signaling mechanism to
      `ed25519_verify` to use `ed25519-dalek` when it is present. Together with `ExtensionBeforeBlock` it
      can be used to setup a node in way to sync historical blocks that require `ed25519-dalek`, because
      they included a transaction that verified differently as when using `ed25519-zebra`.
      
      This feature can be enabled in the following way. In the chain service file, directly after the
      client is created, the following code should be added:
      
      ```
      use sc_client_api::ExecutorProvider;
      client.execution_extensions().set_extensions_factory(
      	sc_client_api::execution_extensions::ExtensionBeforeBlock::<Block, sp_io::UseDalekExt>::new(BLOCK_NUMBER_UNTIL_DALEK_SHOULD_BE_USED)
      );
      ```
      
      * Fix doc
      
      * More fixes
      
      * Update client/api/src/execution_extensions.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Fix merge and warning
      
      * Fix docs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      0c934a93
    • Alexander Theißen's avatar
      contracts: Don't put unstable functions in special module (#12781) · 0068716b
      Alexander Theißen authored
      
      
      * Don't put unstable functions in special module
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarSasha Gryaznov <[email protected]>
      
      * cargo fmt
      
      Co-authored-by: default avatarSasha Gryaznov <[email protected]>
      0068716b