- Jul 10, 2019
-
-
Kian Peymani authored
* enforce minimum bond amount. * Bump. * Improve doc. * Update srml/staking/src/lib.rs Co-Authored-By: Shawn Tabrizi <[email protected]> * Update srml/staking/src/lib.rs Co-Authored-By: Gavin Wood <[email protected]> * Doc update.
-
Black3HDF authored
* fix typos * update information about ink * fix typos * fix typo * fix typos
-
Bastian Köcher authored
-
Gavin Wood authored
-
* add block number * add ext_current_block * add ext_current_block test * Update srml/contracts/src/wasm/mod.rs Co-Authored-By: Sergei Pepyakin <[email protected]> * Update srml/contracts/src/wasm/mod.rs Co-Authored-By: Sergei Pepyakin <[email protected]> * change valid comment * use BlockNumberOf<T> * Update srml/contracts/src/exec.rs Co-Authored-By: André Silva <[email protected]> * return types copy, not reference * version up spec_version and impl_version * change method name current_block -> block_number * Update srml/contracts/src/exec.rs Co-Authored-By: Sergei Pepyakin <[email protected]>
-
Bastian Köcher authored
* Check that the returned validator set is not empty * Move assert to session module * Clean up
-
Gavin Wood authored
* Add copy of council seats as elections module. * Split council into collective and elections modules. Make collective instanceable. * Propagate changes to the runtime and fix origin/event * insert_ref and put_ref to avoid copies. * Add tests * Fix up collective's tests * One more test * Fix elections module tests * Missed merge line * Minor fix * Test fixes * Line widths * Line widths * Rntime version * Remove comment * Deduplicate * Bump runtime again * Fix test
-
André Silva authored
-
Max Inden authored
Ensure all nodes in the sentry setup run in release mode. In addition configure sentry-a as a reserved node for validator-a.
-
Max Inden authored
Instead of logging the fact that a generic invalid block announcement is ignored, log that the given block is the genesis block.
-
Pierre Krieger authored
* Some documentation for discovery.rs * Typos * Address concerns * Fix doc after imports
-
- Jul 09, 2019
-
-
thiolliere authored
* impl test using both storage and child_storage * few fixes * remove unused code * impl PartialEq with children keys * fmt * implementation of basic with children + rename new * assert and test * no panic in runtime * address comments * fix
-
Max Inden authored
Given the following situation: A validator 'A' is not supposed to be connected to the public internet to protect it from e.g. a DoS attack. Instead it connects to a sentry node 'sentry-A' which connects to the public internet. Validator 'B' can reach validator 'A' via sentry node 'sentry-A' and vice versa. A sentry node needs to participate in the grandpa gossip without becoming a validator itself in order to forward these message to its validator. This commit adds a new command line flag (`--grandpa-voter`) forcing a node to participate in the grandpa voting process even though no `--key` was specified. Due to the fact that it does not have a key, it does not become a validator in the network. In order to simulate the above situation this commit also adds a Docker Compose file (`scripts/sentry-node/docker-compose.yml`) with further documentation.
-
Gavin Wood authored
* Allow sub accounts to be derived from an TypeId. * Deduplicate * Fix * Rephrase.
-
Pierre Krieger authored
* SharedFinalityProofRequestBuilder -> BoxFinalityProofRequestBuilder * SharedThings -> BoxThings * Fix tests * build_request_data now takes &mut self * The other traits now also take &mut self * More or less fix tests * Fix tests * Fix more tests * Moar tests * Don't call make_block_import multiple time * Fix doctest
-
Tomasz Drwięga authored
* Implement sign & verify. * Use phrases and password. * Sign & verify with authority keys. * Fix tests. * WiP * WiP * Allow the caller to decide on 'CryptoKind'. * Remove TODO. * Make seed private back. * Fix non-std build and bump version. * Use Into<u32> instead of asses. * Add missing typedef.
-
André Silva authored
* srml: system: prune block number to hash mapping * srml: system: add test for block hash mapping pruning * node: bump runtime version * srml: system: wrap long line * srml: system: use parameter type for block hash count * srml: system: prune block hash mapping before storage root calculation * srml: system: keep the genesis hash in block number map
-
- Jul 08, 2019
-
-
Pierre Krieger authored
-
David Craven authored
-
asynchronous rob authored
* on-disable primitives for engines * dispatch on-disabled digests from SRML consensus * bump runtime versions * use find_map
-
Shawn Tabrizi authored
* Make priviledged functions explicity use `origin` * Fix typo in docs * Fix more tests * Remove `root` pathway, add semicolons
-
Bastian Köcher authored
* Make `RUSTFLAGS` configurable in `wasm-builder` * Version ups * Update `Cargo.lock`
-
Pierre Krieger authored
-
Pierre Krieger authored
* Remove useless internal messages * Remove NetworkService::disconnect_peer * Remove NetworkMsg altogether * Rename ProtocolMsg ServerToWorkerMsg * Remove useless code * Add example for parse_str_addr * Move parse_str_addr and ProtocolId to config * Don't reexport the content of config * Rework the imports * More reexports rework * Add documentation * Move finalization report to network future * Move on_block_imported to worker * get_value/put_value no longer locking * local_peer_id() no longer locks * Remove FetchFuture * Service imports cleanup * Produce the network state in the network task * Merge network task and RPC network task * Move network methods to NetworkWorker * Remove Arc peers system from network * add_reserved_peer now goes through the channel * Remove Mutex around network swarm * Remove the FnOnce alias traits * Replace is_offline with num_connected * Improve style of poll() * Fix network tests * Some doc in service module * Remove macro export * Minor doc changes * Remove the synchronized() method of the import queue * Line width * Line widths * Fix import queue tests * Fix CLI tests
-
asynchronous rob authored
* skeleton for tracking historical sessions * refactor OpaqueKeys * some more skeleton work * adjust session to new OpaqueKeys API * further refactoring of key-type-ids * session gets validator ID parameter * run up against compiler * tweak staking to support new session changes * first run at child storage for deduplication * Make session use `AccountId` as `ValidatorId` * run up against child trie issues * switch to using normal trie but with a fixed prefix * clear out some println * add dedup test * flesh out historical module more * introduce ExposureOf for staking * test the historical module * WASM compiles * tests all compile * do some mock change * fix bulk of tests * fix staking tests * test obsolecence mechanic * Apply suggestions from code review Co-Authored-By: Bastian Köcher <[email protected]> * some more style nits * a couple more nits * tweak tries * fix typo thie -> this
-
Arkadiy Paronyan authored
-
- Jul 07, 2019
-
-
Stanislav Tkach authored
-
- Jul 06, 2019
-
-
Pierre Krieger authored
* Split the import queue in three files * Move import_single_block to root
-
Bastian Köcher authored
-
- Jul 05, 2019
-
-
Bastian Köcher authored
* Make `wasm-builder` work with `cargo install` * Update `Cargo.lock`
-
Max Inden authored
Block period was renamed to minimum period. This commit updates the README accordingly.
-
Pierre Krieger authored
* Pass the peerset config to ProtocolBehaviour * Don't pass the protocol versions * Move fields from protocol_behaviour.rs to protocol.rs * Remove LocalNetworkOut * Move CustomProtos from protocol_behaviour.rs to protocol.rs * Remove ProtocolBehaviour * Inline poll() * Force Behaviour to use Protocol * Don't even attempt to have working tests * Remove NetworkOut trait * Line widths
-
Max Inden authored
-
Bastian Köcher authored
This is quite more idiomatic substrate :D
-
Bastian Köcher authored
* End build when `wasm-builder` does not find a prerequisite Using `compile_error!` was a stupid idea by me, as rust would not re-execute the build.rs. * Increment the `wasm-builder` version * Update core/utils/wasm-builder/src/lib.rs Co-Authored-By: André Silva <[email protected]>
-
Pierre Krieger authored
* Add a memory-only option for the network * Tests cleanup * Make grandpa/aura/babe compile * Aura and Babe tests now passing * More work on tests rewrite * Attempt to fix grandpa * Make more grandpa tests pass * More grandpa tests work * Work on sync tests * More work * light_peer_imports_header_from_announce passes * can_sync_small_non_best_forks passes * syncing_node_not_major_syncing_when_disconnected passes * blocks_are_not_announced_by_light_nodes passing * All sync tests passing
🎉 * Some TestNet cleanup * Work on grandpa tests * More grandpa work * GrandPa work * Add check about block_import * Remove the temporarily added Sync * Fix network tests warnings * voter_persists_its_votes passes * Fix imports in network tests * Fix service tests * Call on_block_imported🤷 * Add shortcut * Finish using shortcut -
Pierre Krieger authored
-
Pierre Krieger authored
* Use SpawnTaskHandle to pass to the RPC * Create the RPC server in lib.rs * Create the RPC servers in a separate function * Keep a local version of the RPC handlers * Make rpc-servers compile for WASM * Add RpcSesssion * Clean up * Address review * Address pull request review
-
André Silva authored
* grandpa: make observer relay round messages * grandpa: observer also notes next round * grandpa: no need to note commit round
-
Pierre Krieger authored
* on_start now returns the precise elements to request * Fix test
-