- Feb 26, 2021
-
-
ordian authored
-
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.
-
ordian authored
-
Bernhard Schuster authored
-
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: Bastian Köcher <[email protected]> * Update node/network/bridge/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * Update node/subsystem/Cargo.toml Co-authored-by: Bastian Köcher <[email protected]> * Update node/subsystem/dispatch-gen/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * Update node/subsystem/dispatch-gen/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * Update node/network/bridge/src/lib.rs Co-authored-by: Andronik 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: Andronik Ordian <[email protected]> * Update node/subsystem/dispatch-gen/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * nail deps down * more into() * flatten * missing use statement * fix messages order Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Andronik Ordian <[email protected]>
-
- Feb 25, 2021
-
-
asynchronous rob authored
* some initial spans for approval voting * add stage earlier
-
ordian authored
-
André Silva authored
* Pass shared_authority_set to request_response_config_for_chain * "Update Substrate" Co-authored-by: Ashley Ruglys <[email protected]> Co-authored-by: parity-processbot <>
-
asynchronous rob authored
-
- Feb 24, 2021
-
-
Bastian Köcher authored
* Companion for Substrate #8185 https://github.com/paritytech/substrate/pull/8185 * "Update Substrate" Co-authored-by: parity-processbot <>
-
asynchronous rob authored
* spawn availability store and approval voting subsystems as blocking tasks * refactor
-
Bastian Köcher authored
Currently the first last timestamp is `0` and that leads to the first slot being `0` which is reserved for genesis. There is some debug assert in BABE that complains about this in Cumulus :D
-
Martin Pugh authored
* bump version and substrate * update weights * 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=pallet_election_provider_multi_phase --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=kusama-dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/ * cargo run --release --features=runti...
-
asynchronous rob authored
-
Kian Paimani authored
* Template * Midway.. * Make all 3 runtimes work * Update node/service/Cargo.toml * undo brach updates * fix with latest version * Update runtime/kusama/src/lib.rs Co-authored-by: Shawn Tabrizi <[email protected]> * Update runtime/rococo/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * Final nits * Update runtime/kusama/src/lib.rs Co-authored-by: Guillaume Thiolliere <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Guillaume Thiolliere <[email protected]>
-
- Feb 23, 2021
-
-
asynchronous rob authored
-
asynchronous rob authored
* add tracing to approval voting * notify if session info is not working * add dispute period to chain specs * propagate genesis session to parachains runtime * use `on_genesis_session` * protect against zero cores in computation * tweak voting rule to be based off of best and add logs * genesis configuration should use VRF slots only * swallow more keystore errors * add some docs * make validation-worker args non-optional and update clap * better tracing for bitfield signing and provisioner * pass amount of bits in bitfields to inclusion instead of recomputing * debug -> warn for some logs * better tracing for availability recovery * a little av-store tracing * bridge: forward availability recovery messages * add missing try_from impl * some more tracing * improve approval distribution tracing * guide: hold onto pending approval messages until NewBlocks * Hold onto pending approval messages until NewBlocks * guide: adjust comment * process all actions for one wakeup at a time * vec * fix network bridge test * replace randomness-collective-flip with Babe * remove PairNotFound
-
Bernhard Schuster authored
* feat/view: assure heads in a view are sorted Allows O(n) comparisons, adds an alternate equiv relation which takes O(n^2) for integrity verification. Ref #2133 * revert: remove custom PartialEq impl, there are no duplicates * fix: do not sort the live_heads, that alters the local view * refactor/view: heads should not be public * chore/spellcheck: add unfinalized * fix/view: add missing len() and is_empty() fns * quirk * vec is not view * Update node/network/approval-distribution/src/tests.rs Co-authored-by: Andronik Ordian <[email protected]> * Update node/network/bridge/src/lib.rs Co-authored-by: Andronik Ordian <[email protected]> * Update node/network/protocol/src/lib.rs Co-authored-by: Andronik Ordian <[email protected]> * fixup comment * fix botched test Co-authored-by: Andronik Ordian <[email protected]>
-
- Feb 22, 2021
-
-
Bastian Köcher authored
* Substrate companion for #8163 https://github.com/paritytech/substrate/pull/8163 * "Update Substrate" Co-authored-by: parity-processbot <>
-
- Feb 19, 2021
-
-
Bastian Köcher authored
* Companion for Substrate#8155 https://github.com/paritytech/substrate/pull/8155 * :D * Update the Substrate reference
-
Bernhard Schuster authored
* feat/jaeger: more spans, more stages Stage numbers are still arbitrarily picked. * feat/jaeger: additional spans * chore/spellcheck: improve the dictionary * fix/jaeger JaegerSpan -> jaeger::Span
-
- Feb 18, 2021
-
-
asynchronous rob authored
* Use KeyValueDB in approval-voting * use KVDB instead of AuxStore * add rocksdb to cargo toml * add a Config struct * create new DB in service * fix dep for regular node * make optional * post merge fix Co-authored-by: Andronik Ordian <[email protected]>
-
Bernhard Schuster authored
* feat/jaeger: unify all used tags, introduce builder pattern, additional candidate annotations * chores * fixes, incomplete fn rename * another fix * more fixes * silly doctests
-
asynchronous rob authored
-
- Feb 17, 2021
-
-
asynchronous rob authored
* guide changes for a fast-path requesting from backing validators * add backing group to availability recovery message * add new phase to interaction * typos * add full data messages * handle new network messages * dispatch full data requests * cleanup * check chunk index * test for invalid recovery * tests * Typos. * fix some grumbles * be more explicit about error handling and control flow * fast-path param * use with_chunks_only in Service Co-authored-by: Robert Klotzner <[email protected]>
-
asynchronous rob authored
* add full data messages * handle new messages * flip condition
-
Bastian Köcher authored
* Track the collation status in the collator protocol This pr changes the collator protocol to track the status of a collation. This is mainly used to log the status of a collation when it is removed to inform the user if a collation maybe never reached a validator. * Update node/network/collator-protocol/src/collator_side.rs Co-authored-by: Robert Habermeier <[email protected]> * Moare logging Co-authored-by: Robert Habermeier <[email protected]>
-
asynchronous rob authored
-
ordian authored
* insta-approval for low-node testnets * fix * handle 0 needed_approvals and add some logs * downgrade logs to debug, per block * fix a warning * more useful logs * test * finish test
🎉 * not so fast * the test passes, but is it enough? -
ordian authored
-
asynchronous rob authored
* guide: max one candidate with upgrade per block * max one candidate with upgrade per block * ignore on runtime level too
-
Bernhard Schuster authored
* refactor/reputation: unify the values used * chore/rep: rename Annoy* to Cost*, make duplicate message Cost*Repeated * fix/reputation: lost and found, convert at the boundary to substrate * refactor/rep: move conversion to base reputation one level down, left conversions * fix/rep: order of magnitude adjustments Thanks pierre! * remove spaces * chore/rep: give rationale for order of magnitude * refactor/rep: move UnifiedReputationChange to separate file * fix/rep: order of magnitudes correction
-
Cecile Tonglet authored
* WIP * WIP * WIP * Revert branch change * CLEANUP * "Update Substrate" * Fix build * Revert "Fix build" This reverts commit 2dcc3f2a14d28febb84c2c35d682243bc03523a8. * cargo update -p sp-io Co-authored-by: parity-processbot <>
-
- Feb 16, 2021
-
-
asynchronous rob authored
* REVERT: comment out graphviz * rewrite most of protocol-disputes * write about conclusion and chain selection * tie back in overview * basic disputes module * guide: InclusionInherent -> ParaInherent * language * add ParaInherentData type * plug parainherentdata into provisioner * provide_multi_dispute * tweak * inclusion pipeline logic for disputes * be clearer about signature checking * reject backing of disputed blocks * some type rejigging * known-disputes runtime API * wire up inclusion * Revert "REVERT: comment out graphviz" This reverts commit 66203e362f7872cb413d258f74634a0aad70302b. * timeouts * include in initialization order * address grumbles
-
thiolliere authored
-
ordian authored
* tests: use future::join * fix panic in cache_session_info_for_head * fix test assertion * fix infinite loop in determine_new_blocks * fix ordering in determine_new_blocks * fix expected ancestry in tests
-
asynchronous rob authored
* integrate approval voting into overseer * expose public API and make keystore arc * integrate overseer in service * guide: `ApprovedAncestor` returns block number * return block number along with hash from ApprovedAncestor * introduce a voting rule for reporting on approval checking * integrate the delay voting rule * Rococo configuration * fix compilation and add slack * fix web-wasm build * tweak parameterization * migrate voting rules to asycn * remove hack comment
-
- Feb 15, 2021
-
-
Sergey Pepyakin authored
* Update shared-memory to new version & refactor This two are combined in a single commit because the new version of shared-memory doesn't provide the used functionality anymore. Therefore in order to update the version of this crate we implement the functionality that we need by ourselves, providing a cleaner API along the way. * Significantly decrease the required memory for a workspace For some reason it was allocating an entire GiB of memory. I suspect this has something to do with the current memory size limit of a PVF execution environment (the prior name suggests that). However, we don't need so much memory anywhere near that amount. In fact, we could reduce the allocated size even more, but that maybe for the next time. * Unlink shmem just after opening That will make sure that we don't leak the shmem accidentally. * Do not compile workspace mod for androind and wasm * Address some review comments * Fix the test runner * Fix missed +1 for the attached flag * Use .expect rather than .unwrap * Add a rustdoc for the workspace module * fixup! Use .expect rather than .unwrap * Add some doc comments to pub members * Warn on error removing shm_unlink * Change the alignment implementation * Fix the comment nit
-
André Silva authored
* node: migrate grandpa voting rule to async api * node: fix grandpa voting rule tests * "Update Substrate" * update Substrate Co-authored-by: parity-processbot <> Co-authored-by: Robert Habermeier <[email protected]>
-
Bastian Köcher authored
* Polkadot companion for 8114 https://github.com/paritytech/substrate/pull/8114 * "Update Substrate" Co-authored-by: parity-processbot <>
-