1. Jul 25, 2019
  2. Jul 24, 2019
    • André Silva's avatar
      Use BABE instead of AuRa in node (#3171) · 8b7d0fb9
      André Silva authored
      * babe: add babe module trait
      
      * babe: track current slot and epoch start slot
      
      * babe: implement ShouldEndSession based on epochs
      
      * babe: rename weight type to avoid ambiguities
      
      * babe: expose epoch start slot in Epoch digest
      
      * babe: use epoch start for validating epoch transitions
      
      * babe: make the epoch duration a parameter type
      
      * babe: remove unused fields from config
      
      * node: update runtime to use babe instead of aura
      
      * node: use babe instead of aura
      
      * core: generate sr25519 keys from seed and add to keystore
      
      * core: remove AuthorityKeyring
      
      * node: remove unused primitive types related to babe crypto
      
      * uniform babe primitives crate import name
      
      * wrap long lines
      
      * babe: fix find_epoch_digest
      
      * fork-tree: fix find_node_where
      
      * node: set babe epoch duration to "10 minutes"
      
      * babe: cleanup import key cache if authorities don't change
      
      * node: make integration test compile (but fail)
      
      * node: bump spec_version
      
      * node: fix import
      
      * babe: don't use constants in storage fields array sizes
      
      * babe: account for first epoch slot way in the past
      
      * babe: signal next epoch change (not current)
      
      * babe: calculate next epoch randomness with next epoch index
      
      * babe: track next epoch in node
      
      * babe: cache current epoch and authorities separately
      
      * babe: generate valid babe vrf proofs in integration test
      
      * babe: cleanup claim_slot
      
      * babe: perform threshold calculation according to spec
      
      * babe: compute relative weight in threshold
      
      * babe: more precise threshold calculation
      
      * babe: use floats for threshold exponent calculation
      
      * babe: update constant c
      8b7d0fb9
  3. Jul 11, 2019
  4. Jul 09, 2019
    • Max Inden's avatar
      Introduce flag to enable sentry nodes to participate in grandpa gossip (#3018) · cf5b132b
      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.
      cf5b132b
    • Tomasz Drwięga's avatar
      [offchain] Support for sign & verify for crypto keys (#3023) · 4dc625ff
      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.
      4dc625ff
  5. Jul 08, 2019
    • Pierre Krieger's avatar
      Network crate cleanups (#3049) · 09086cf7
      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
      09086cf7
  6. Jul 05, 2019
    • Pierre Krieger's avatar
      Rewrite the network TestNet (#3016) · dd3cab9b
      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
      dd3cab9b
  7. Jul 04, 2019
  8. Jun 26, 2019
    • Pierre Krieger's avatar
      Remove tokio dependencies (#2935) · 2393e9b5
      Pierre Krieger authored
      * Remove dependencies on tokio
      
      * Make service not depend on tokio
      
      * Fix service tests
      
      * Manually poll the import queue if failed to start
      
      * Spawn all tasks at the end
      
      * Remove executor from TelemetryOnConnect
      
      * Remove TaskExecutor from offchain workers
      
      * Remove TaskExecutor from AuthoritySetup
      
      * Remove TaskExecutor from service
      
      * Remove tokio dependency from RPC
      
      * Remove finality-grandpa from WASM checks
      
      * Fix offchain tests
      
      * Line widths
      
      * Fix RPC tests
      
      * Fix service tests
      
      * Fix bad futures polling
      
      * Address some concerns
      
      * Better error handling
      
      * Is it the connectivity test that's not passing? I don't know, let's try
      
      * Revert "Is it the connectivity test that's not passing? I don't know, let's try"
      
      This reverts commit 28bbe51f.
      
      * Fix test
      2393e9b5
  9. Jun 21, 2019
  10. Jun 15, 2019
  11. Jun 12, 2019
  12. Jun 04, 2019
  13. May 30, 2019
  14. May 28, 2019
    • Michael Müller's avatar
      Transaction factory (#2481) · 7e7185ce
      Michael Müller authored
      
      
      * Fix typos
      
      * Add transaction factory
      
      `cargo run -- purge-chain -y --chain dev && cargo run -- --dev --transaction-factory 10`
      
      * Fix comment and remove build deps
      
      * Move crate to test-utils
      
      * Switch from flag to subcommand
      
      `cargo run -- factory --dev --num 5`
      
      * Decouple factory from node specifics
      
      * Introduce different manufacturing modes
      
      * Remove unrelated changes
      
      * Update Cargo.lock
      
      * Use SelectChain to fetch best block
      
      * Improve expect proof
      
      * Panic if factory executed with unsupported chain spec
      
      * Link ToDo comments to follow-up ticket
      
      * Address comments and improve style
      
      * Remove unused dependencies
      
      * Fix indent level
      
      * Replace naked unwrap
      
      * Update node/cli/src/factory_impl.rs
      
      * Fix typo
      
      * Use inherent_extrinsics instead of timestamp
      
      * Generalize factory and remove saturated conversions
      
      * Format imports
      
      * Make it clearer that database needs to be empty
      
      * Ensure factory settings
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update test-utils/transaction-factory/src/lib.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Fix match guard syntax
      
      * Simplify import, remove empty line
      
      * Update node/cli/Cargo.toml
      
      * Update lockfile
      7e7185ce
    • Jordan Beauchamp's avatar
      ae37cb86
    • Benjamin Kampmann's avatar
      Silence known deprecation warnings (#2651) · d8fc4485
      Benjamin Kampmann authored
      * Silence known deprecation warnings
      
      1. Prefixes known instances of usages of client.backend and client.import_lock with `#[allow(deprecated)]` to silence the warnings. 2. Remove file-global `#![allow(deprecated)]` used in these cases. Both to prevent us overlooking externally caused deprecation messages.
      
      * fixing missing ;
      
      * fix missing test cases
      
      * move deprecated markers to make CI happy
      
      * move deprecated markers to make CI happy
      
      * attempt to fix the test
      
      * bumping impl_version of node runtime
      
      * Minor cleanup
      d8fc4485
  15. May 24, 2019
    • Tomasz Drwięga's avatar
      Expunge error-chain (feat. tomaka) (#2662) · d713fbc3
      Tomasz Drwięga authored
      * Remove error_chain
      
      * Expunge error-chain from rpc and service.
      
      * Expunge from transaction pool.
      
      * Expunge from node/cli
      
      * Expunge from keystore.
      
      * Remove some boilerplate.
      
      * Fix remaining stuff.
      
      * Improve on deprecation message.
      
      * Fix issues.
      
      * Fix trnsaction pool tests.
      
      * Fix the rest.
      
      * Fix borked merge.
      
      * Update lock
      d713fbc3
  16. May 23, 2019
  17. May 22, 2019
    • Gavin Wood's avatar
      Remove `As` (#2602) · 1e3fd718
      Gavin Wood authored
      
      
      * Start to remove the `As` bound on `SimpleArtithmetic`
      
      This just introduces standard numeric bounds, assuming a minimum of
      `u32`. Also included is a saturating from/into trait allowing ergonomic
      infallible conversion when you don't care if it saturates.
      
      * Remove As from Balances trait
      
      * Remove As from Aura module
      
      * Remove As from Babe module
      
      * Expunge `As` from contract
      
      * Council module
      
      * Democracy
      
      * Finality tracker
      
      * Grandpa
      
      * First bit of indices
      
      * indices
      
      * Line lengths
      
      * session
      
      * system
      
      * Staking
      
      * Square up all other uses of As.
      
      * RHD update
      
      * Fix build/test
      
      * Remove As trait
      
      * line widths
      
      * Remove final As ref
      
      * Update srml/staking/src/lib.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update core/client/src/cht.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update core/client/db/src/light.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * whitespace
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      * Bring back u32 check for number on CLI
      1e3fd718
  18. May 20, 2019
  19. May 15, 2019
    • 郭光华's avatar
      Add tty password input (#2503) · a11dd6ce
      郭光华 authored
      * Add tty password input
      
      * Move password from core/service to core/cli
      
      * Fix test build error
      
      * Password should be entered only once if it's for decoding
      
      * Update Cargo.lock from rebuild
      a11dd6ce
  20. May 14, 2019
  21. May 10, 2019
  22. May 09, 2019
  23. May 04, 2019
  24. May 01, 2019
  25. Apr 26, 2019
  26. Apr 25, 2019
  27. Apr 23, 2019
  28. Apr 22, 2019
  29. Apr 17, 2019
  30. Apr 16, 2019
  31. Apr 14, 2019
  32. Apr 11, 2019
    • Andrew Jones's avatar
      Replace error-chain for client error (#2231) · d39e718f
      Andrew Jones authored
      * WIP: convert client error
      
      * Remove error_chain for client error
      
      * Ignore tx-pool error deprecation warning
      
      * Update Cargo.lock files
      
      * Fix tests
      
      * Increment impl_version
      
      * Derive From impls, remove allow(missing_docs)
      
      * Remove space
      
      * Remove redundant into()s
      
      * Blockchain Error source
      
      * Bump impl version
      d39e718f