1. Aug 11, 2019
  2. Aug 09, 2019
  3. Aug 08, 2019
  4. Aug 07, 2019
    • Bastian Köcher's avatar
      More tests and some cleanup (#3331) · e269dbf0
      Bastian Köcher authored
      e269dbf0
    • Gavin Wood's avatar
      Refactor key management (#3296) · ed61b1fd
      Gavin Wood authored
      
      
      * Add Call type to extensible transactions.
      
      Cleanup some naming
      
      * Merge Resource and BlockExhausted into just Exhausted
      
      * Fix
      
      * Another fix
      
      * Call
      
      * Some fixes
      
      * Fix srml tests.
      
      * Fix all tests.
      
      * Refactor crypto so each application of it has its own type.
      
      * Introduce new AuthorityProvider API into Aura
      
      This will eventually allow for dynamic determination of authority
      keys and avoid having to set them directly on CLI.
      
      * Introduce authority determinator for Babe.
      
      Experiment with modular consensus API.
      
      * Work in progress to introduce KeyTypeId and avoid polluting API
      with validator IDs
      
      * Finish up drafting imonline
      
      * Rework offchain workers API.
      
      * Rework API implementation.
      
      * Make it compile for wasm, simplify app_crypto.
      
      * Fix compilation of im-online.
      
      * Fix compilation of im-online.
      
      * Fix more compilation errors.
      
      * Make it compile.
      
      * Fixing tests.
      
      * Rewrite `keystore`
      
      * Fix session tests
      
      * Bring back `TryFrom`'s'
      
      * Fix `srml-grandpa`
      
      * Fix `srml-aura`
      
      * Fix consensus babe
      
      * More fixes
      
      * Make service generate keys from dev_seed
      
      * Build fixes
      
      * Remove offchain tests
      
      * More fixes and cleanups
      
      * Fixes finality grandpa
      
      * Fix `consensus-aura`
      
      * Fix cli
      
      * Fix `node-cli`
      
      * Fix chain_spec builder
      
      * Fix doc tests
      
      * Add authority getter for grandpa.
      
      * Test fix
      
      * Fixes
      
      * Make keystore accessible from the runtime
      
      * Move app crypto to its own crate
      
      * Update `Cargo.lock`
      
      * Make the crypto stuff usable from the runtime
      
      * Adds some runtime crypto tests
      
      * Use last finalized block for grandpa authority
      
      * Fix warning
      
      * Adds `SessionKeys` runtime api
      
      * Remove `FinalityPair` and `ConsensusPair`
      
      * Minor governance tweaks to get it inline with docs.
      
      * Make the governance be up to date with the docs.
      
      * Build fixes.
      
      * Generate the inital session keys
      
      * Failing keystore is a hard error
      
      * Make babe work again
      
      * Fix grandpa
      
      * Fix tests
      
      * Disable `keystore` in consensus critical stuff
      
      * Build fix.
      
      * ImOnline supports multiple authorities at once.
      
      * Update core/application-crypto/src/ed25519.rs
      
      * Merge branch 'master' into gav-in-progress
      
      * Remove unneeded code for now.
      
      * Some `session` testing
      
      * Support querying the public keys
      
      * Cleanup offchain
      
      * Remove warnings
      
      * More cleanup
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBenjamin Kampmann <[email protected]>
      
      * More cleanups
      
      * JSONRPC API for setting keys.
      
      Also, rename traits::KeyStore* -> traits::BareCryptoStore*
      
      * Bad merge
      
      * Fix integration tests
      
      * Fix test build
      
      * Test fix
      
      * Fixes
      
      * Warnings
      
      * Another warning
      
      * Bump version.
      ed61b1fd
  5. Aug 06, 2019
    • thiolliere's avatar
      Update to parity-scale-codec (#3232) · 31983882
      thiolliere authored
      
      
      * WIP: update codec
      
      * WIP
      
      * compiling
      
      * WIP
      
      * rename parity-scale-codec to codec
      
      * WIP
      
      * fix
      
      * remove old comments
      
      * use published crates
      
      * fix expected error msg
      
      * bump version
      
      * fmt and fix
      
      * remove old comment
      
      * fix wrong decoding impl
      
      * implement encode like for structures
      
      * undo removal of old pending changes
      
      * trailingzeroinput
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * update codec
      
      * fmt
      
      * version is 1.0.0
      
      * show more error
      
      * fmt
      31983882
  6. Jul 30, 2019
  7. Jul 29, 2019
    • Jim Posen's avatar
      Fix substrate factory CLI command (#3239) · 2a3b4ccc
      Jim Posen authored
      * CLI execution flag for import-blocks and factory.
      
      * Fix minimum_balance bug with CLI factory.
      2a3b4ccc
    • Kian Paimani's avatar
      Refactor sr_primitives. (#3214) · 1fcd1286
      Kian Paimani authored
      * refactor sr_primitives.
      
      * Fix try build error.
      
      * Line-width
      
      * Ui test.
      
      * Final fixes.
      
      * Fix build again.
      
      * bring back ui test.
      
      * Fix unsigned import.
      
      * Another ui fix.
      
      * Also refactor substrate-primitives
      
      * Fix benchmarks.
      
      * Fix doc test.
      
      * fix doc tests
      1fcd1286
  8. Jul 25, 2019
  9. 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
  10. Jul 11, 2019
  11. 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
  12. 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
  13. 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
  14. Jul 04, 2019
  15. 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
  16. Jun 21, 2019
  17. Jun 15, 2019
  18. Jun 12, 2019
  19. Jun 04, 2019
  20. May 30, 2019
  21. 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
  22. 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
  23. May 23, 2019
  24. 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
  25. May 20, 2019
  26. 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
  27. May 14, 2019