1. Mar 10, 2021
    • André Silva's avatar
      runtime: use babe as randomness source (#2504) · b3603605
      André Silva authored
      * runtime: use babe as randomness source
      
      * runtime: fix randomness api
      
      * bridges: fix random_seed
      
      * parachains: use mock TestRandomness from frame_support_test
      
      * parachains: use mock TestRandomness from frame_support_test
      
      * runtime: update randomness source in test-runtime
      
      * runtime: remove unused import
      
      * parachains: add todo to audit usage of randomness api
      
      * "Update Substrate"
      
      Co-authored-by: parity-processbot <>
      b3603605
    • asynchronous rob's avatar
      remove statement::invalid (#2597) · 9331e06e
      asynchronous rob authored
      9331e06e
    • Tomasz Drwięga's avatar
      Companion for #8137 (MMR Custom RPC) (#2463) · 639dcc2e
      Tomasz Drwięga authored
      * Switch branch
      
      * Fix compilation.
      
      * Revert "Switch branch"
      
      This reverts commit a3bd3621772ae98618c46102d03501856b7950ba.
      
      * Update Cargo.lock.
      
      * Add telemetry span back.
      
      * Fix telemetry_span issues.
      
      * Update substrate.
      639dcc2e
    • ordian's avatar
      prefix parachain log targets with parachain:: (#2600) · baa691de
      ordian authored
      * prefix parachain log targets with parachain::
      
      * even more consistent
      baa691de
    • Ashley's avatar
      Companion PR for substrate PR 8072 - Add a config field to babe epochs (#2467) · 956be35d
      Ashley authored
      * Add a config field to babe epochs
      
      * Fix test
      
      * Add BABE_GENESIS_EPOCH_CONFIG consts
      
      * Use PrimaryAndSecondaryVRFSlots and remove newlines
      
      * Make epoch_configs Some
      
      * Fix tests
      
      * Fix test service tests
      
      * Add a BabeEpochConfigMigrations OnRuntimeUpgrade
      
      * Apply suggestions
      
      * Use PrimaryAndSecondaryPlainSlots in kusama
      
      * Remove migration from test runtime and rococo
      
      * Add HasPalletPrefix
      
      * Rename to BabePalletPrefix and change BabeApi -> Babe
      
      * "Update Substrate"
      
      * Update substrate
      
      * Resolve parantheses errors
      
      Co-authored-by: parity-processbot <>
      956be35d
  2. Mar 09, 2021
  3. Mar 07, 2021
  4. Mar 06, 2021
  5. Mar 05, 2021
  6. Mar 04, 2021
    • Robert Klotzner's avatar
      Jaeger spans for availability distribution (#2559) · c0347f02
      Robert Klotzner authored
      
      
      * Logging functionality for spans.
      
      * Jaeger spans for availability distribution.
      
      * Fix instrumentation to use log target properly.
      
      * Add some tracing instrumentation macros.
      
      * Use int_tags instead of logs.
      
      * Add span per iteration.
      
      * Remove span::log functionality.
      
      * Fix instrumentation log target for real.
      
      * Add jaeger span to responding side as well.
      
      * Revert "Fix instrumentation log target for real."
      
      This reverts commit e1c2a2e6ff6f257e702f07d8a77c2668af92b0ef.
      
      * Revert "Fix instrumentation to use log target properly."
      
      This reverts commit 7caa0bd1acc6fe9727bb3a91851560d756c40ab8.
      
      * target -> subsystem in instrumentatio macro
      
      target is not correct either, and the correct way of using a top level
      target = LOG_TARGET does not work, as the macro expects a string literal
      and gets confused by the constant `LOG_TARGET`.
      
      * Use kebab-case for spa names.
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      c0347f02
    • Robert Klotzner's avatar
      Fix links in docs. (#2556) · 95f1b09b
      Robert Klotzner authored
      95f1b09b
    • ordian's avatar
  7. Mar 03, 2021
  8. Mar 02, 2021
  9. Mar 01, 2021
  10. Feb 28, 2021
    • Gavin Wood's avatar
      Companion for Substrate #8120 (#2541) · c4b89e11
      Gavin Wood authored
      
      
      * add remark_with_event
      
      * Bump Substrate
      
      * cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
      
      * cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
      
      * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
      
      * cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
      
      Co-authored-by: default avatarBryan Chen <[email protected]>
      Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
      c4b89e11
  11. Feb 27, 2021
  12. Feb 26, 2021
    • ordian's avatar
    • Robert Klotzner's avatar
      Request based availability distribution (#2423) · 48409e55
      Robert Klotzner authored
      * WIP
      
      * availability distribution, still very wip.
      
      Work on the requesting side of things.
      
      * Some docs on what I intend to do.
      
      * Checkpoint of session cache implementation
      
      as I will likely replace it with something smarter.
      
      * More work, mostly on cache
      
      and getting things to type check.
      
      * Only derive MallocSizeOf and Debug for std.
      
      * availability-distribution: Cache feature complete.
      
      * Sketch out logic in `FetchTask` for actual fetching.
      
      - Compile fixes.
      - Cleanup.
      
      * Format cleanup.
      
      * More format fixes.
      
      * Almost feature complete `fetch_task`.
      
      Missing:
      
      - Check for cancel
      - Actual querying of peer ids.
      
      * Finish FetchTask so far.
      
      * Directly use AuthorityDiscoveryId in protocol and cache.
      
      * Resolve `AuthorityDiscoveryId` on sending requests.
      
      * Rework fetch_task
      
      - also make it impossible to check the wrong chunk index.
      - Export needed function in validator_discovery.
      
      * From<u32> implementation for `ValidatorIndex`.
      
      * Fixes and more integration work.
      
      * Make session cache proper lru cache.
      
      * Use proper lru cache.
      
      * Requester finished.
      
      * ProtocolState -> Requester
      
      Also make sure to not fetch our own chunk.
      
      * Cleanup + fixes.
      
      * Remove unused functions
      
      - FetchTask::is_finished
      - SessionCache::fetch_session_info
      
      * availability-distribution responding side.
      
      * Cleanup + Fixes.
      
      * More fixes.
      
      * More fixes.
      
      adder-collator is running!
      
      * Some docs.
      
      * Docs.
      
      * Fix reporting of bad guys.
      
      * Fix tests
      
      * Make all tests compile.
      
      * Fix test.
      
      * Cleanup + get rid of some warnings.
      
      * state -> requester
      
      * Mostly doc fixes.
      
      * Fix test suite.
      
      * Get rid of now redundant message types.
      
      * WIP
      
      * Rob's review remarks.
      
      * Fix test suite.
      
      * core.relay_parent -> leaf for session request.
      
      * Style fix.
      
      * Decrease request timeout.
      
      * Cleanup obsolete errors.
      
      * Metrics + don't fail on non fatal errors.
      
      * requester.rs -> requester/mod.rs
      
      * Panic on invalid BadValidator report.
      
      * Fix indentation.
      
      * Use typed default timeout constant.
      
      * Make channel size 0, as each sender gets one slot anyways.
      
      * Fix incorrect metrics initialization.
      
      * Fix build after merge.
      
      * More fixes.
      
      * Hopefully valid metrics names.
      
      * Better metrics names.
      
      * Some tests that already work.
      
      * Slightly better docs.
      
      * Some more tests.
      
      * Fix network bridge test.
      48409e55
    • ordian's avatar
      make runtime_api non blocking task again (#2531) · 241b1f12
      ordian authored
      241b1f12
    • Bernhard Schuster's avatar
      05f74c21
    • Bernhard Schuster's avatar
      test: add unit test to catch missing distribution to subsystems faster (#2495) · 31327eb0
      Bernhard Schuster authored
      
      
      * test: add unit test to catch missing distribution to subsystems faster
      
      * add a simple count
      
      * introduce proc macro to generate dispatch type
      
      * refactor
      
      * refactor
      
      * chore: add license
      
      * fixup unit test
      
      * fixup merge
      
      * better errors
      
      * better fmt
      
      * fix error spans
      
      * better docs
      
      * better error messages
      
      * ui test foo
      
      * Update node/subsystem/dispatch-gen/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update node/network/bridge/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update node/subsystem/Cargo.toml
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update node/subsystem/dispatch-gen/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update node/subsystem/dispatch-gen/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update node/network/bridge/src/lib.rs
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      
      * fix compilation
      
      * use find_map
      
      * drop the silly 2, use _inner instead
      
      * Update node/network/bridge/src/lib.rs
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      
      * Update node/subsystem/dispatch-gen/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * nail deps down
      
      * more into()
      
      * flatten
      
      * missing use statement
      
      * fix messages order
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      31327eb0
    • Xiliang Chen's avatar
      Add an optional verifier to crowdloan (#2248) · 69734bb8
      Xiliang Chen authored
      
      
      * Add an optional verifier to crowdloan
      
      * add tests
      
      * verify signatures
      
      * benchmark with signatures
      
      * update crowdloan benchmark
      
      * try to get keystore working in test
      
      * rewrite to avoid traits
      
      * Use MultiSignature and MultiSigner
      
      * refactor and update benchmarks
      
      * optimize check order
      
      * fix no_std build
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      69734bb8
  13. Feb 25, 2021