- Sep 19, 2019
-
-
Tomasz Drwięga authored
* Force new era only when over third validators is disabled. * Update srml/session/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update srml/staking/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Parametrize the threshold. * Bump runtime version. * Update node/runtime/src/lib.rs * Fix build. * Fix im-online test.
-
Kian Paimani authored
* phragmen election module. * Add new files. * Some doc update * Update weights. * bump and a few nits. * Performance improvement. * Master.into() * Update srml/elections-phragmen/src/lib.rs Co-Authored-By: Gavin Wood <[email protected]> * Fix build * Some fixes. * Fix build. * Proper outgoing and runner-up managment. * Bit more sensical weight values. * Update srml/elections-phragmen/src/lib.rs * Update srml/elections-phragmen/src/lib.rs Co-Authored-By: Gavin Wood <[email protected]> * Update srml/elections-phragmen/src/lib.rs Co-Authored-By: Gavin Wood <[email protected]> * Update srml/elections-phragmen/src/lib.rs Co-Authored-By: Gavin Wood <[email protected]> * fix lock file * Fix build. * Remove runner-ups * Some refactors. * Add support for reporting voters. * Fix member check. * Remove equlize.rs * Update srml/elections-phragmen/src/lib.rs * Update srml/elections-phragmen/src/lib.rs * Update srml/elections-phragmen/src/lib.rs Co-Authored-By: Gavin Wood <[email protected]> * Update srml/elections-phragmen/src/lib.rs Co-Authored-By: Gavin Wood <[email protected]> * Bring back runner ups. * use decode_len * Better weight values. * Update bogus doc * Bump. * Update srml/elections-phragmen/src/lib.rs Co-Authored-By: Gavin Wood <[email protected]> * Review comments. * One more test * Fix tests * Fix build * .. and fix benchmarks. * Update srml/elections-phragmen/src/lib.rs * Version bump
-
Talha Cross authored
* core/primitives: set dothereum address type to 4 * subkey: add dothereum to network prefix * core/primitives: set dothereum address type to 20 * core/primitives: update comment * core/primitives: set default address to Dothereum * Revert "core/primitives: set default address to Dothereum" This reverts commit 2fc95490c89390eb26f200cb314435b1e9ff83e8. * core/primitives: allow to parse different default address types
-
- Sep 18, 2019
-
-
Pierre Krieger authored
* Remove the no_std feature from the WASM builder * Address review * More fixing * Address review again * Fix missing Cargo.lock
-
Bastian Köcher authored
* Make `wasm-builder` check for `rust-lld` * Update README.adoc Co-Authored-By: Ricardo Rius <[email protected]>
-
Kian Paimani authored
* Add from impl for uint authority * Undo change to cargo.
-
* updated direct dependencies to parity-wasm * fixed tests and incremented impl_version of the runtime * update wasmi to 0.5.1 in sr-sandbox, bringing all parity-wasm deps up to 0.40
-
- Sep 17, 2019
-
-
Arkadiy Paronyan authored
* Storage tracing * Whitepsaces Co-Authored-By: Sergei Pepyakin <[email protected]> * Apply suggestions from code review Co-Authored-By: Bastian Köcher <[email protected]> * Update Cargo.lock
-
Bastian Köcher authored
`debug-assertions` can also be enabled in for release builds. This introduces a new build-script that extracts the build type from the `PROFILE` env variable and sets the `build_type` cfg.
-
-
* Add contracts RPC to full node. * Instantiate both RPC extensions for light & full.
-
Bastian Köcher authored
By accident it was already enabled in master for quite some time. To make sure that we don't blow up the wasm binary size, I compiled the binary with the feature enabled and disabled. With nice panic messages enabled, the binary size increases by 908 bytes. Given the value that this feature brings, I think it is okay to have these panic messages enabled by default.
-
Arkadiy Paronyan authored
* Send block status with announcement * Fixed tests * Whitespace Co-Authored-By: Gavin Wood <[email protected]> * Additional comment * Update comment Co-Authored-By: André Silva <[email protected]>
-
Weiliang Li authored
Add `import_notification_stream` for test client
-
- Sep 16, 2019
-
-
Svyatoslav Nikolsky authored
* multiple remote values in single message * keys_str: String ->keys_str: closure
-
- Sep 13, 2019
-
-
Tomasz Drwięga authored
* Add meta rpc_methods call. * Sort methods. * Bump runtime. * Change format a bit to support versioning.
-
Bastian Köcher authored
* Move trait `Printable` into `sr-primitives` * Cleanup runtime io trie_root interfaces * Remove last generic bits from sr-io interface * Fix srml-sudo after master merge * Fix benchmarks * Runtime bump
-
Michael Müller authored
* Clear up import/export misunderstandings * Fetch minimum period from runtime * Remove unnecessary comment This variable is already fetched from the runtime in the line below. * Fix bug in factory The `best_block_id` stayed the same, it was always the genesis hash. This resulted in the factory failing after 4096 blocks, since `client/db` discards hashes (in this case the genesis hash) after 4096 blocks from the database. * Fix tense in error message * Improve allocator documentation * Fix bug in allocator Under certain circumstances an invalid pointer was returned: when the `ptr` was calculated as equal to the `max_heap_size`. This is an invalid pointer since there is no access allowed after the heap limit. The way to provoke this was to repeatedly allocate with sizes which were previously not allocated and immediately deallocate right afterwards. What this did was to increment the `bumper` with each allocation, whilst keeping the `total_size` of the heap `0`. If this repeated allocation/deallocation scheme resulted in `max_heap_size == ptr` the `ptr` was still returned. The allocator only checked if the `total_size` was still within the `max_heap_size` limits, and not if the resulting `ptr` was still within the valid heap region. This commit introduces a check to validate if the calculated `ptr` is within the heap. * Add test for zero byte allocation and document behavior * Improve code readability by introducing a const * Fix error message in test * Apply suggestions from code review Co-Authored-By: Bastian Köcher <[email protected]> * Fix code review suggestions * Replace early return with assertion * Remove test for zero size allocations * Shorten test code * Shorten comment * Make bump() return Result * Add comment for bump() * Remove ambiguous comment * Replace value with const * Use proof for panic message * Fix merge * Add comment regarding minimum allocation size
-
Tomasz Drwięga authored
* Use session::validators instead of staking::current_elected * Basic test framework. * Initialize validators, attempt to heartbeat. * Use dummy crypto for im-online testing. * Remove printlns. * Finish test, make it invalid. * Add reporting test. * Finalize the test. * Remove dumbness. * Updates. * Update AuRa * Update srml/im-online/src/tests.rs Co-Authored-By: Bastian Köcher <[email protected]> * Derive Ord * Add some more tests. * Remove stray todo. * Bump runtime version. * Bump impl-trait-for-tuples. * Enforce new version of trait-for-tuples.
-
Kian Paimani authored
* Fix locking. * Some reformattings. * Fix build. * Fix doc comment. * Bump.
-
Kian Paimani authored
* Move phragmen benches to.. phragmen. * Move some basic phragmen tests to.. phragmen. * Line-width * Add phragmen equ implementation as flot * Add phragmen equ implementation as flot * Add mock and test file.
-
- Sep 12, 2019
-
-
Bastian Köcher authored
* Implement support for `patch` section in wasm-builder * Update core/utils/wasm-builder/src/wasm_project.rs * Support patch by path * Go down to the actual data
-
Sergey Pepyakin authored
* Print version when panic * Fix tests.
-
Svyatoslav Nikolsky authored
* removing fetcher dependency from light backend * fix compilation
-
André Silva authored
* grandpa: reannounce latest voted blocks periodically * grandpa: add test for background block announcement * grandpa: configurable delay for background block announcer * grandpa: nits
-
Gavin Wood authored
* Sudo can dispatch from an account. * Fix * Bump runtime. * Update srml/sudo/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]>
-
Marcio Diaz authored
* Decode hex * Remove log * Some refactoring to help with testing * Add own functions for sign and verify. * Add sign test * Sign-verify test * Generate-sign-verify test for both cryptos * Add aliases * Print signature * More refactoring * Update sign-transaction as transfer * Simplify transfer and sign-transaction * main to top file * rename read_input_message to read_message_from_stdin * More refactoring * Add read_required_parameter * Add format seed * More refactoring * format code * add print_extrinsic * Remove 0x from print * fix naming * Fix readme * Remove rustfmt * Remove commented test * Fix import nits
-
Sergey Pepyakin authored
* Sketch * Some work on docs. * Doc improvements. * More docs. * Some more docs. * Yet another comment. * Bump impl_version. * Accept the block hash * Use NumberOrHex * Update node/rpc/src/contracts.rs Co-Authored-By: Tomasz Drwięga <[email protected]> * Move rpc/primitives
-
-
- Sep 11, 2019
-
-
André Silva authored
* grandpa: ignore result of voter command send * grandpa: avoid race condition on environment::finalize_block
-
Sergey Pepyakin authored
* Add a failing test case * Actual fix * read_child_storage, fix wasm side * Bump the impl version. * Alternative (#3597) * Update with_std.rs * Update with_std.rs * Update wasm_executor.rs * Update wasm_executor.rs * Update with_std.rs * Update wasm_executor.rs
-
Bastian Köcher authored
* Switch to new proc-macro crate for implementing traits for tuples * Switch back to stable `Cargo.lock` format * Reduce tuple number to match rusts default implementation
-
André Silva authored
-
Gavin Wood authored
* Minor cleanups and tests * Add another test * fix * Fix tests * Fix tests * Update srml/staking/src/tests.rs Co-Authored-By: thiolliere <[email protected]>
-
Shawn Tabrizi authored
* Use `--release` for running a Substrate dev node Otherwise users may run into block production time problems. * Update README.adoc
-
Svyatoslav Nikolsky authored
* do not panic during execution proof check * Update core/state-machine/src/lib.rs Co-Authored-By: DemiMarie-parity <[email protected]> * Update core/state-machine/src/lib.rs Co-Authored-By: DemiMarie-parity <[email protected]> * Update core/state-machine/src/lib.rs Co-Authored-By: DemiMarie-parity <[email protected]> * BackendTrustLevel enum * up runtime version * Update core/state-machine/src/lib.rs Co-Authored-By: DemiMarie-parity <[email protected]> * Update core/state-machine/src/lib.rs Co-Authored-By: DemiMarie-parity <[email protected]> * fixed some grumbles * Update core/state-machine/src/testing.rs Co-Authored-By: Gavin Wood <[email protected]> * Update core/state-machine/src/lib.rs Co-Authored-By: Gavin Wood <[email protected]> * mov where * spaces -> tabs (to restart build)
-
- Sep 10, 2019
-
-
Bastian Köcher authored
* Start refactoring state-machine crate * More improvement to state-machine * Fix tests compilation on master and remove warnings * Fix compilation * Apply suggestions from code review Co-Authored-By: Sergei Pepyakin <[email protected]> * Update core/state-machine/src/basic.rs Co-Authored-By: DemiMarie-parity <[email protected]> * Line width * Update core/primitives/src/storage.rs Co-Authored-By: Benjamin Kampmann <[email protected]> * Update core/state-machine/src/error.rs Co-Authored-By: Benjamin Kampmann <[email protected]> * Review feedback
-
Tomasz Drwięga authored
-
Bastian Köcher authored
* Adds new wrapper traits for wasm executor * Add new crate `substrate-wasm-interface` Thew new crate holds types and traits for the communicating between the wasm runtime and the host. * Rewrite externals with new macro etc * Fix vec initialization * Make executor tests working * Remove unused code + warnings * Introduce `Pointer` and `WordSize` for working with wasm * Fix tests and compilation * Fix compilation * Apply suggestions from code review Co-Authored-By: Sergei Pepyakin <[email protected]> * Review feedback * Remove unused conversions * Make each host function its own struct `HostFunctions` now just returns these function structs. Each function can be executed by using one of the function structs. The inherent host functions are now moved to the "normal" host functions. * Remove byteorder * Add floating point types * Make pointer interface more safe * Add type alias for wasm-interface Result * More review comments
-
Bastian Köcher authored
* Augment every task spawned by Service with `on_exit` * Add CI test that the node exits
-