- Jun 02, 2020
-
-
Kian Paimani authored
* part1: Accept inly epsilon better solutions * Fix pre-dispatch check * Fix build * review grumbles * Epsilon -> Threshold
-
tgmichel authored
* evm: move gas price check to top-level dispatchable * Add AccountCodes get fn and account_exists helper * Remove account_exists, evm handles non-existing accounts * Runtime bump impl_version 251/2 * Fix Runtime impl_version and spec_version Co-authored-by: Wei Tang <[email protected]>
-
- Jun 01, 2020
-
-
Dan Forbes authored
-
- May 28, 2020
-
-
Bastian Köcher authored
* Enable the `runtime-wasm` for wasm builds This enables the `runtime-wasm` feature for wasm builds. The feature is not mandatory and will only be activated if it exists in the `Cargo.toml`. * Fix compilation * Update docs * Uprgade version * Apply suggestions from code review
-
- May 27, 2020
-
-
Kian Paimani authored
* Make Get const friendly * Better doc * Grumble * Better doc * Clean runtime files more
-
Pierre Krieger authored
-
Nikolay Volf authored
-
Xiliang Chen authored
* add failing test for multiply_by_rational * fix BigUint * fix length * bump version * merge tests
-
- May 26, 2020
-
-
Benjamin Kampmann authored
-
Gavin Wood authored
* Filter calls. * Remove old proxy code * Docs and repot * Update frame/utility/src/tests.rs Co-authored-by: Marcio Diaz <[email protected]> * fix test * Grumble * Bump runtime version * fix * Attempt general fix Co-authored-by: Marcio Diaz <[email protected]> Co-authored-by: NikVolf <[email protected]>
-
- May 25, 2020
-
-
Benjamin Kampmann authored
-
Pierre Krieger authored
-
Nikolay Volf authored
* add read-only externalities * sanity checks * cleanup * Update primitives/state-machine/src/read_only.rs Co-authored-by: Bastian Köcher <[email protected]> * fix typo * add error exit code if nothing was run Co-authored-by: Bastian Köcher <[email protected]>
-
- May 22, 2020
-
-
pscott authored
* Add BlockStream Enum and utility fn * WIP: Modify import closure to work with BlockStream * Fix trait bounds * Working prototype * Revamp block importing * Add export_import_flow tests * Add comments and clean code * Add more comments in the import fn * Add link code to import function * Add condition when returning Ready(Ok(()) to make sure we've imported every block * Add check for imported blocks in JSON case * Use rest pattern * Fix compilation error for undeclared variable * Add polling and waker before pending * Print read_block_count instead of count * Simplify binary cli option with structopt * Update test to reflect changes in CLI api * Change Stream to take SignedBlock<B> instead of B * Add comments to BlockStream * Move out logic to smaller functions for clearer code * Remove result over import_blocks return type * Check for error in command output rather than simply checking command exit status * Revamp export/import/revert testing * Fix minor typos and formatting errors Co-authored-by: Bastian Köcher <[email protected]> * Remove unnecessary if condition in terminating condition Co-authored-by: Bastian Köcher <[email protected]> * Explicit error instead of returning it as a string Co-authored-by: Bastian Köcher <[email protected]> * Pass BlockStream to log_importing_status_updates and simplify matching arms for block stream * Use .contains() instead of regex match * Line break in match block; return future::ready instead of poll_fn * Update Cargo.lock * Add check so that queue doesn't grow too big * Use Iterator instead of Stream * Remove allow dead_code * Remove outdated comments Co-authored-by: Bastian Köcher <[email protected]> * Return Errors instead of logging them * Simplify match arms Co-authored-by: Bastian Köcher <[email protected]> * Remove check before terminating block import * Apply suggestions from code review * Check that queue is not full BEFORE calling * Revert "Remove check before terminating block import" This reverts commit 377823c0 . * Improve unit tests to make sure we actually import blocks * Remove Unpin implementation for BlockIter * Add prototype of enum for ImportStates * Add working prototype for StateMachine * Add comments for clearer code * Add sleep before calling Waker when waiting for import queue * Add Speedometer * add dbg!(&log) for test debugging * Fix lines with more than 100 cols * Fix regex capture for test * Update regexes to take to capture the whole number * Rename Cmd to Command Co-authored-by: Gavin Wood <[email protected]> * Actually rename Cmd to Command * Apply suggestions from code review Co-authored-by: Gavin Wood <[email protected]> * Fix compilation errors for tests * Fix compilation errors from code review suggestion * Update bin/node/cli/tests/export_import_flow.rs Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Gavin Wood <[email protected]> Co-authored-by: Benjamin Kampmann <[email protected]>
-
Xiliang Chen authored
-
- May 21, 2020
-
-
Marcio Diaz authored
* Implement Fixed trait. * Fix tests * Fix tests * Fix tests 2 * Address review comment regarding from_i129. * Remove precision by using log10() as suggested in review. * Add small comments. * Use checked versions + panic for ops::*. * Remove repeated test. * Uncomment test. * Remove casts. * Add more comments. * Add tests. * Panic on saturating_div_int * More tests. * More docs. * Saturating renames. * Fix to_bound doc. * Move some impl to trait. * Add range * Add macro pre. * More round() tests. * Delete confusion. * More impl to trait * Add doc for fixedpoint op. * Remove trailing spaces. * Suggested docs changes. * More tests and comments for roundings. * Some quickcheck tests. * Add missing panic, more test/comments. * Nits. * Rename. * Remove primitives-types import. * Apply review suggestions * Fix long lines and add some fuzz. * fix long line * Update fuzzer * Bump impl * fix warnings Co-authored-by: Gavin Wood <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]>
-
Shawn Tabrizi authored
* keep block weight in storage * Update lib.rs * rename to `BlockWeight`, update tests * remove println * make test better * keep extrinsics length clean
-
Shawn Tabrizi authored
* Weight accounting for on_offence. * Try to compute weight. * Guesstimate upper bounds on db read/writes for slashing * greater than or equal to * add new trait * Update mock.rs * Add basic weight test * one more test * Update frame/staking/src/lib.rs Co-authored-by: thiolliere <[email protected]> * Update frame/staking/src/lib.rs Co-authored-by: Kian Paimani <[email protected]> * Add test for offences queue Co-authored-by: Tomasz Drwięga <[email protected]> Co-authored-by: thiolliere <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
-
André Silva authored
* service: pass DenyUnsafe to rpc extensions * node: add DenyUnsafe to rpc full node dependencies * client: fix whitespace in rpc policy file * babe: treat epochAuthorship rpc method as unsafe * babe: add test for unsafe rpc method * babe: rename babe rpc handler * service: traitify rpc extension builder * service: make the rpc extensions builder api non-breaking * service: revert changes from light node rpc extensions builder * node: remove unnecessary type in service creation * service: cleanup with_rpc_extensions implementation * service: add missing docs to RpcExtensionBuilder
-
mattrutherford authored
Co-authored-by: Matt Rutherford <[email protected]>
-
thiolliere authored
* note_preimage using operational * Update frame/democracy/src/lib.rs Co-authored-by: Gavin Wood <[email protected]>
-
Alexander Theißen authored
* Emit a PaymentParameters event once per block This contains per-block paramaters need to calculate fees off-chain. * Add WeightToFee trait * Add documentation to polynomial types * Ignore pseudo code snippet for doc tests * Use `Mul` implementation of Perbill * Add tests for WeightToFeePolynomial * Revert "Emit a PaymentParameters event once per block" This reverts commit 6c4763ba . Co-authored-by: Gavin Wood <[email protected]>
-
- May 20, 2020
-
-
Wei Tang authored
* evm: allow setting pre-defined accounts in genesis * Only build GenesisAccount in std
-
Tomasz Drwięga authored
* Only check single extrinsics weight limit in validate_transaction. * Add missing parameter to all pallets. * Add tests, fix default configuration. * Bump spec version. * Use AvailableBlockRation to calculate MaxExtrinsicWeight
-
- May 18, 2020
-
-
Pierre Krieger authored
* Upgrade to libp2p v0.19 * Listen on IPv6 by default * Increase channels sizes * Use spec-compliant noise protocol * Show legacy PeerId * Switch order of Noise protocols * Switch to crates.io version * Fix subkey's version * Fix line width and Wasm build * I think Wasm is fixed for real this time
-
Alexander Theißen authored
* Include post dispatch corrected weight in extrinsic events * Drop the 'Post' from ApplyExtrinsicResultWithPostInfo to make it less verbose * Apply suggestions from code review Co-authored-by: Bastian Köcher <[email protected]> * Use proper Event type in pallet_system tests * Add test that the actual weight is returned by events * Make fn extract_actual_weight cap at pre dispatch weight * Bump spec version Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Gavin Wood <[email protected]>
-
Nikolay Volf authored
* fix benchmarks and add check * address review * fix line width
-
Wei Tang authored
* Refactor EVM operations to module functions * Bump impl version
-
Nikolay Volf authored
* Add basic authorship metrics * fixes * no arc * move to crate * Update client/proposer-metrics/Cargo.toml Co-authored-by: Max Inden <[email protected]> * remove prefix * use HistogramTimer * Update client/proposer-metrics/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/basic-authorship/src/basic_authorship.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/basic-authorship/src/basic_authorship.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/basic-authorship/src/basic_authorship.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/basic-authorship/src/basic_authorship.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/basic-authorship/src/basic_authorship.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/proposer-metrics/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/proposer-metrics/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Max Inden <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
Nikolay Volf authored
-
- May 16, 2020
-
-
Benjamin Kampmann authored
-
- May 15, 2020
-
-
Benjamin Kampmann authored
-
Benjamin Kampmann authored
-
Kian Paimani authored
* Fist benchmark barely working * Debug checkpoint * add rest of benchmarks * Add to runtime * Fix build * Update frame/elections-phragmen/src/benchmarking.rs Co-authored-by: Shawn Tabrizi <[email protected]> * Update frame/elections-phragmen/src/benchmarking.rs Co-authored-by: Shawn Tabrizi <[email protected]> * major imp * Make them run on release * Help finish phragmen benchmarks (#5886) * update caller, account, and member/runner-up creation * remove stuff * ocd * make it work with real run * relax the numbers a bit * New and improved version * Make elections-phragmen weighable and secure. (#5949) * Make elections-phragmen weighable. * Update frame/elections-phragmen/src/lib.rs Co-authored-by: Alexander Popiak <[email protected]> * Update frame/elections-phragmen/src/lib.rs Co-authored-by: Alexander Popiak <[email protected]> * Fix all tests * Fix everything * Add note Co-authored-by: Alexander Popiak <[email protected]> * Doc update * Fix some complexity params * Once more ready to benchmark * ready for bench * final tunes * Update frame/elections-phragmen/src/lib.rs * Fix fix * Update frame/elections-phragmen/src/lib.rs * Update frame/elections-phragmen/src/benchmarking.rs Co-authored-by: Alexander Popiak <[email protected]> * Update frame/elections-phragmen/src/benchmarking.rs Co-authored-by: Alexander Popiak <[email protected]> * Update to latest weights * Some fixes * Fix dual voter read from @thiolliere * Remove todos * review from @shawntabrizi * Fix bench tests. Co-authored-by: Shawn Tabrizi <[email protected]> Co-authored-by: Alexander Popiak <[email protected]>
-
thiolliere authored
-
Benjamin Kampmann authored
-
Andrew Plaza authored
-
- May 14, 2020
-
-
Demi Obenour authored
* Add ‘transaction_version’ to the signed transaction This allows hardware wallets to know which transactions they can safely sign. To reduce transaction size, I reduced it to a ‘u8’ from a ‘u32’. Fixes #5951. * Restore transaction_version to a u32 * Fix comments `transaction_version` is not part of a tx, but is still signed. Co-authored-by: Bastian Köcher <[email protected]> * Fix the test suite I had forgotten to change the production of transactions in the test code. * Fix benchmarks * Improve docs for `CheckTxVersion` in `frame_system` Co-authored-by: André Silva <[email protected]> * Remove spurious cast Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: André Silva <[email protected]>
-
Alexander Popiak authored
-
- May 13, 2020
-
-
Nikolay Volf authored
-