Skip to content
  1. Jul 28, 2022
  2. Jul 27, 2022
  3. Jul 22, 2022
    • ordian's avatar
      malus: add `finality_delay` cli flag (#5770) · b1f8445d
      ordian authored
      * add malus_finality_delay flag
      
      * cargo update -p sp-io
      
      * no warnings when malus is disabled
      
      * subpar workaround for feature unification problem
      
      * remove malus_finality_delay from regular cli
      
      * document finality_delay param, rename cli arg
      b1f8445d
  4. Jul 12, 2022
    • Bernhard Schuster's avatar
      split NetworkBridge into two subsystems (#5616) · 3240cb5e
      Bernhard Schuster authored
      
      
      * foo
      
      * rolling session window
      
      * fixup
      
      * remove use statemetn
      
      * fmt
      
      * split NetworkBridge into two subsystems
      
      Pending cleanup
      
      * split
      
      * chore: reexport OrchestraError as OverseerError
      
      * chore: silence warnings
      
      * fixup tests
      
      * chore: add default timenout of 30s to subsystem test helper ctx handle
      
      * single item channel
      
      * fixins
      
      * fmt
      
      * cleanup
      
      * remove dead code
      
      * remove sync bounds again
      
      * wire up shared state
      
      * deal with some FIXMEs
      
      * use distinct tags
      
      Co-authored-by: default avatarAndrei Sandu <[email protected]>
      
      * use tag
      
      Co-authored-by: default avatarAndrei Sandu <[email protected]>
      
      * address naming
      
      tx and rx are common in networking and also have an implicit meaning regarding networking
      compared to incoming and outgoing which are already used with subsystems themselvesq
      
      * remove unused sync oracle
      
      * remove unneeded state
      
      * fix tests
      
      * chore: fmt
      
      * do not try to register twice
      
      * leak Metrics type
      
      Co-authored-by: default avatarAndrei Sandu <[email protected]>
      Co-authored-by: default avatarAndronik <[email protected]>
      3240cb5e
  5. Jul 09, 2022
    • Vsevolod Stakhov's avatar
      Implement prune only stagnant check mode (#5761) · c11c1f38
      Vsevolod Stakhov authored
      
      
      * Limit number of elements loaded from the stagnant key
      
      This will likely be required if we enable stagnant prunning as currently database has way
      too many entries to be prunned in a single iteration
      
      * Fmt run
      
      * Slightly improve logging
      
      * Some more debug nits
      
      * Fmt pass
      
      * Add stagnant prunning delay
      
      * Enable stagnant check worker
      
      * Implement stagnant pruning without stagnant checks
      
      * Update node/core/chain-selection/src/tree.rs
      
      Co-authored-by: default avatarAndronik <[email protected]>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAndronik <[email protected]>
      
      Co-authored-by: default avatarAndronik <[email protected]>
      c11c1f38
  6. Jul 06, 2022
    • Svyatoslav Nikolsky's avatar
      Remove bridges subtree (#5752) · 3f29fd04
      Svyatoslav Nikolsky authored
      * remove bridges folder
      
      * remove BRIDGES.md
      
      * remove bridges mentions from top Cargo.toml
      
      * remove bridges from CODEOWNERS
      
      * remove bridges mentions from testing.md
      
      * remove bridge pallets from Rococo/Wococo runtime
      
      * also remove from node
      3f29fd04
  7. Jun 13, 2022
  8. May 31, 2022
  9. May 25, 2022
  10. May 23, 2022
  11. May 19, 2022
  12. May 12, 2022
  13. May 11, 2022
    • Bernhard Schuster's avatar
      polkadot-node-subsystem package rename mish mash cleanup (#5502) · d437a33e
      Bernhard Schuster authored
      * unify to polkadot-node-subsystem{,-test-helpers}
      
      * chore: fmt
      d437a33e
    • Davide Galassi's avatar
      Revert approval voting (#5438) · 8837dc7e
      Davide Galassi authored
      * Revert approval-voting subsystem
      
      * Approval voting revert encapsulated within 'ops' module
      
      * use 'get_stored_blocks' to get lower block height
      
      * Fix error message
      
      * Optionally shrink/delete stored blocks range
      
      * range end number is last block number plus 1
      
      * Apply code review suggestions
      
      * Use tristate enum for block range in backend overlay
      
      * Add clarification comment
      
      * Add comments to private struct
      8837dc7e
    • Kian Paimani's avatar
      Add Nomination Pools to Kusama (#5447) · 9f21ec97
      Kian Paimani authored
      
      
      * add nomination pools to kusama
      
      * Update runtime/kusama/src/lib.rs
      
      Co-authored-by: default avatarMara Robin B. <[email protected]>
      
      * Update runtime/kusama/src/lib.rs
      
      * probably fix build
      
      * really fix build
      
      * fix benches
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark pallet --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark pallet --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
      
      * whitelist transactional storage limit
      
      * make defensive
      
      * fix
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark pallet --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
      
      * update
      
      * fix benches
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark pallet --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
      
      * change head
      
      * fmt
      
      Co-authored-by: default avatarMara Robin B. <[email protected]>
      Co-authored-by: default avatarParity Bot <[email protected]>
      9f21ec97
  14. May 10, 2022
    • Robert Klotzner's avatar
      Double grandpa gossip duration for Kusama and test networks (#5448) · 7a602c47
      Robert Klotzner authored
      * Double grandpa gossip duration.
      
      * Make resend period slightly larger.
      
      So it won't get triggered by additional grandpa delay.
      
      * Bump other values as well.
      
      * Don't change gossip duration on Polkadot.
      
      (and Westend as it is meant to be a testbed for Polkadot)
      7a602c47
    • Niklas Adolfsson's avatar
      companion for #8783 - jsonrpsee (#4344) · 804d0f38
      Niklas Adolfsson authored
      * add jsonrpsee glue code
      
      * diener --substrate dp-jsonrpsee-integration-2
      
      * cargo fmt
      
      * update substrate
      
      * fix build
      
      * update substrate
      
      * fix tests
      
      * update substrate
      
      * update substrate
      
      * revert Cargo.toml
      
      * revert changes in Cargo.toml
      
      * jsonrpsee v0.11
      
      * fix staking miner
      
      * chore: update jsonrpsee v0.12
      
      * update companion
      
      * update companion
      
      * fix changes in substrate
      
      * revert requires_full_sync removal
      
      * fix: read WS address from polkadot output
      
      * fit nits
      
      * fix more nits
      
      * update lockfile for {"substrate"}
      
      * cargo fmt
      
      Co-authored-by: parity-processbot <>
      804d0f38
  15. May 05, 2022
  16. May 04, 2022
  17. Apr 28, 2022
  18. Apr 27, 2022
  19. Apr 26, 2022
  20. Apr 25, 2022
  21. Apr 13, 2022
  22. Apr 12, 2022
    • Tsvetomir Dimitrov's avatar
      Add staging runtime api (#5048) · fd020c07
      Tsvetomir Dimitrov authored
      * Move `trait ParachainHost` to a separate version independent module
      
      `trait ParachainHost` is no longer part of a specific primitives
      version. Instead there is a single trait for stable and staging api
      versions. The trait contains stable AND staging methods. The latter are
      explicitly marked as unstable.
      
      * Fix `use` primitives
      
      `polkadot_primitives::v2` becomes `polkadot_primitives::runtime_api`
      
      * Staging API declaration and stubs
      
      Introduces the concept for 'staging functions' in runtime API. These
      functions are still in testing and they are meant to be used only
      within test networks (Westend).
      They coexist with the stable calls for technical reasons - maintaining
      different runtime APIs for different networks is hard to implement.
      
      Check the doc comments in source files for more details how the staging
      API should be used.
      
      * Add new staging method - get_session_disputes()
      
      Add `staging_get_session_disputes` to `ParachainHost` as the first
      method of the staging API.
      
      * Hide vstaging runtime api implementations  behind feature flag
      
      * Fix test runtime
      
      * fn staging_get_session_disputes() is renamed to fn staging_get_disputes()
      fd020c07
  23. Apr 04, 2022
  24. Mar 24, 2022
    • Vsevolod Stakhov's avatar
      Try to fix out of view statements (#5177) · af94fc95
      Vsevolod Stakhov authored
      This issue happens when some peer sends a good but already known Seconded statement and the statement-distribution code does not update the statements_received field in the peer_knowledge structure. Subsequently, a Valid statement causes out-of-view message that is incorrectly emitted and causes reputation lose.
      
      This PR also introduces a concept of passing the specific pseudo-random generator to subsystems to make it easier to write deterministic tests. This functionality is not really necessary for the specific issue and unit test but it can be useful for other tests and subsystems.
      af94fc95
  25. Mar 23, 2022
  26. Mar 15, 2022
  27. Mar 14, 2022
  28. Mar 09, 2022
    • asynchronous rob's avatar
      Finish migration to v2 primitives (#5037) · 49f7e5cc
      asynchronous rob authored
      * remove v0 primitives from polkadot-primitives
      
      * first pass: remove v0
      
      * fix fallout in erasure-coding
      
      * remove v1 primitives, consolidate to v2
      
      * the great import update
      
      * update runtime_api_impl_v1 to v2 as well
      
      * guide: add `Version` request for runtime API
      
      * add version query to runtime API
      
      * reintroduce OldV1SessionInfo in a limited way
      49f7e5cc
  29. Mar 03, 2022
    • cheme's avatar
      paritydb support for parachains db. (#4838) · d5ddb1a8
      cheme authored
      * parity db subsystem without cache and no splitted column
      
      * fmt
      
      * fix path (auto from parity-db fail)
      
      * lru cache for db column with cache
      
      * Revert "lru cache for db column with cache"
      
      This reverts commit ae177bc5e107a075eff6a21f651218ada6599b74.
      
      * Write_lock mutex
      
      * theoric code for bridges
      
      * revert changes
      
      * Revert bridge changes
      
      * fix spec_version
      
      * update parity db
      
      * test purge-db
      
      * Use specific ordered collection with paritydb.
      
      * Revert "Use specific ordered collection with paritydb."
      
      This reverts commit 8b66d0a4ae914cba1af0f44050d45dd6d9327c6b.
      
      * fix chain selection tests.
      
      * remove patch
      
      * fix auto.
      
      * Remove useless exists directory method
      
      * purge chain without parity-db removal
      
      * spellcheck
      
      * renamings and filtering.
      
      * fix assertion
      
      * format
      
      * update parity-db and fmt
      
      * Auto keep using rocksdb when it exists.
      
      * Revert "Auto keep using rocksdb when it exists."
      
      This reverts commit cea49b32ae590bdce31fed5c45f3c028ae0c7564.
      
      * Update kvdb version.
      d5ddb1a8
  30. Feb 26, 2022
    • Falco Hirschenberger's avatar
      Add benchmarking for parachain runtime `ump` pallet (#3889) · fc919376
      Falco Hirschenberger authored
      
      
      * Claim grounds, not working yet.
      
      * still wip, nothing to see
      
      * Module visibility problem
      
      * Add benchmarks for all parachain-enabled chains
      
      * Add missing mock weights
      
      * Fix mock weight info
      
      * Add max-weight to extrinsic weight
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
      
      * sorting declarations
      
      * Use a maximum size message to benchmark worst-case
      
      * remove warning
      
      * Fix msg size overflow in tests
      
      * Use benchmarked weight in PostInfo
      
      * Update runtime/parachains/src/ump.rs
      
      Co-authored-by: default avatarAlexander Popiak <[email protected]>
      
      * Delete obsolete file
      
      * Compile fix
      
      * Fix spelling
      
      * Add benchmark for `UmpSink::process_upward_message`
      
      It benchmarks the time to process a message, mainly the size-dependent
      decoding time. This is used interally for refunding weight from
      `service_overweight`
      
      * Fix warning
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
      
      * Update runtime/parachains/src/ump.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Give mock weights for tests a name instead of ()
      
      * Add benchmark for `initializer_on_new_session` aka.
      `perform_outgoing_para_cleanup`
      
      * Remove unnescessary pub specifier and change folding to a for loop
      
      suggestions by @pepyakin
      
      
      
      * Update runtime/parachains/src/ump.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update runtime/parachains/src/ump.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Add comment on weight calculation and expected slight overestimation
      
      * Introduce a size bound constant for upward messages
      
      * Use KiB not kB for message size bound
      
      * Enforce max-message size bound
      
      * Use a const for upward message size bound.
      
      * Decrease max_upward_message_sizes to 50KiB as suggested by @pepyakin
      
      * Fix creating overweight messages
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/rococo/src/weights/runtime_parachains_ump.rs
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
      
      * Remove unused variable
      
      * Rename benchmark function to the function actually benchmarked and some
      code cleanup
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/rococo/src/weights/runtime_parachains_ump.rs
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
      
      * Better variable naming
      
      * Fix build
      
      * Fix build
      
      * Fix some remarks from @pepyakin
      
      
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarAlexander Popiak <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avataremostov <[email protected]>
      fc919376
  31. Feb 24, 2022