Skip to content
  1. Dec 13, 2018
  2. Dec 12, 2018
  3. Dec 11, 2018
  4. Dec 10, 2018
    • Tomasz Drwięga's avatar
      [RPC] Move runtime version from chain to state (#1243) · d28fda3d
      Tomasz Drwięga authored and asynchronous rob's avatar asynchronous rob committed
      * Move runtimeVersion to state, add rudimentary test for subscription.
      
      * Bump to latest jsonrpc.
      d28fda3d
    • asynchronous rob's avatar
      Punish offline validators, aura-style (#1216) · 6299b42a
      asynchronous rob authored
      * make offline-reporting infrastructure more generic
      
      * add a listener-trait for watching when the timestamp has been set
      
      * prevent inclusion of empty offline reports
      
      * add test for exclusion
      
      * generate aura-offline reports
      
      * ability to slash many times for being offline "multiple" times
      
      * Logic for punishing validators for missing aura steps
      
      * stub tests
      
      * pave way for verification of timestamp vs slot
      
      * alter aura import queue to wait for timestamp
      
      * check timestamp matches seal
      
      * do inherent check properly
      
      * service compiles
      
      * all tests compile
      
      * test srml-aura logic
      
      * aura tests pass
      
      * everything builds
      
      * some more final tweaks to block authorship for aura
      
      * switch to manual delays before step
      
      * restore substrate-consensus-aura to always std and address grumbles
      
      * update some state roots in executor tests
      
      * node-executor tests pass
      
      * get most tests passing
      
      * address grumbles
      6299b42a
    • Arkadiy Paronyan's avatar
      Fixed common block tracking when syncing (#1235) · dcc38fe4
      Arkadiy Paronyan authored
      * Fixed common block tracking when syncing
      
      * Fixed fork resolution
      dcc38fe4
    • Gav Wood's avatar
      Governance: Voters put money where mouth is (#1183) · 66cbe232
      Gav Wood authored
      * Referendums only gett enacted after a delay; successful voters must
      lock funds up until enactment.
      
      * Build fixes.
      
      * Configurable council enact delay, fix test builds.
      
      * Fix spelling
      
      * Remove TODO
      66cbe232
    • gabriel klawitter's avatar
      Upload builds to releases.parity.io (#1233) · 6c0cfd17
      gabriel klawitter authored
      * gitlab-ci.yml: upload binaries to s3
      
      * gitlab-ci.yml: typo tag names
      
      * gitlab-ci.yml: avoid dots in tags
      
      * gitlab-ci.yml: try before_script
      
      * gitlab-ci.yml: indentation
      
      * gitlab-ci.yml: unified before_script
      
      * gitlab-ci.yml: don't forget script
      
      * use VERSION file
      
      * build.sh only before builds
      
      * git_strategy: none
      
      * use own docker awscli image
      
      * typo
      
      * use artifacts folder
      
      * enable uploads to s3 as well
      
      * add builds.sh to tests
      6c0cfd17
    • cheme's avatar
      Allow spaces in types for decl_storage proc_macro (#1245) · 5f48493b
      cheme authored
      * Do not try to fix type display for metadata in rust.
      
      * Fix test (adding extra space (we can see it as a canary: if at some
      point quote got a better output the test will fail and js space removal
      could be remove)).
      5f48493b
    • Tomasz Drwięga's avatar
      Move pool maintainance to a background task. (#1236) · 507c13e3
      Tomasz Drwięga authored
      * Move pool maintainance to a background task.
      
      * Remove commented code.
      
      * Add issue number to TODOs
      
      * Fix warnings and tests.
      507c13e3
    • Svyatoslav Nikolsky's avatar
      Make CallApiAt::call_api_at work at light client (#1213) · 742cb33d
      Svyatoslav Nikolsky authored
      * light client contextual method call
      
      * fixed off-by-one in test
      
      * newlines + commas
      742cb33d
    • Bastian Köcher's avatar
      Make `decl_module` not require a return type for functions (#1230) · acf1b77b
      Bastian Köcher authored
      If no return type is specified, `Result` is added and
      `Ok(())` is returned by default.
      
      Closes: #1182
      acf1b77b
    • Wei Tang's avatar
      52ba9a56
    • Bastian Köcher's avatar
      Make runtime api generate version and identifier information (#1226) · 1f671934
      Bastian Köcher authored
      * Make `decl_runtime_apis!` implement `RuntimeApiInfo` for all runtime
      apis
      
      * Make the runtime side generate the info constants as well
      
      * Make `RuntimeApiInfo` implementation use the correct generics
      
      * Adds a test for the runtime api info stuff
      
      * Remove duplicated code by using block from `test-client`
      
      * Adds `compile_fail` tests for `api_version`
      
      * Adds documentation for `api_version`
      
      * Make `impl_runtime_apis!` generate `RUNTIME_API_VERSIONS`
      
      * Update documentation and tests for `RUNTIME_API_VERSIONS`
      
      * Implement `has_api` by using the `RuntimeApiInfo`
      
      * Make `impl_runtime_apis` check that trait identifiers are unique
      
      * Prefix all runtime api function with the corresponding trait
      
      So `execute_block` will be called `Core_execute_block`.
      This makes it possible to have traits implement a function with the
      same name.
      
      * Rebase master
      
      * Update after master rebase
      1f671934
    • Bastian Köcher's avatar
      Make cli subcommands accept `--dev`, `--chain` and `--base_path` (#1214) · a4a67ccb
      Bastian Köcher authored
      This restores an old behavior with more checks to inform the user
      about misuse.
      Only the `build-spec` parameter is not accepting these flags and options.
      This subcommand only works with the options specified on the main command,
      this is a restriction of the current cli parse/execute design.
      a4a67ccb
    • Wei Tang's avatar
      Remove BestAuthorities (#1238) · 00410e63
      Wei Tang authored and Svyatoslav Nikolsky's avatar Svyatoslav Nikolsky committed
      00410e63
  5. Dec 09, 2018
    • cheme's avatar
      `decl_storage` as a proc_macro (#1176) · ed5b78ea
      cheme authored
      
      
      * `decl_storage` parsing of the macro (TODO change tool crate structure)
      
      * Start formatting, for now use inner macro.
      Still missing optional formating last part (genesis ...).
      
      * Calling extra genesis macro
      
      * decl_storage lines parsing.
      
      * genesis macro as quote (need some cleaning reorg)
      
      * dirty $crate substitute
      
      * proc crate reorg.
      
      * PR impl : skip usage of phantom data, it only applies in test and
      council (others required it).
      
      * Remaining macro of decl_storage, warning stringify behave sometime
      oddly.
      
      * Formatting code and some cleaning.
      
      * Include line parsing to main struct (cannot use existing macro anymore).
      
      * Remove genesis phantom data when there is already a field with type
      parameter.
      
      * Revert wasm files
      
      * Remove old version of `decl_storage`.
      
      * Fix false positive for phantom trait (additional type check on config
      build).
      
      * slight changes:
      - return token errors instead of panic
      - do not use useless intermediate vec
      
      * Update srml/support/procedural/tools/derive/src/lib.rs
      
      remove indent
      
      Co-Authored-By: default avatarcheme <[email protected]>
      
      * Switch iterations to fold, remove unused import.
      ed5b78ea
    • Wei Tang's avatar
      Fix master test build (#1239) · 3ffb45e3
      Wei Tang authored
      3ffb45e3
  6. Dec 08, 2018
    • André Silva's avatar
      core: fix max depth handling of best_containing (#1234) · e203c285
      André Silva authored and asynchronous rob's avatar asynchronous rob committed
      e203c285
    • Tomasz Drwięga's avatar
      90f6a56b
    • André Silva's avatar
      Grandpa validator set handoff justification (#1190) · e779eeb2
      André Silva authored
      * core: make block justification optional
      
      * runtime: update wasm binaries
      
      * core: optionally pass justification on finalize_block
      
      * finality-grandpa: add channel to trigger authority set changes
      
      this will allow the `BlockImport` to trigger an authority set change when
      importing a change block that provides a justification (when syncing)
      
      * finality-grandpa: move finalize_block to free function
      
      * finality-grandpa: add GrandpaOracle for auth set liveness checking
      
      this will be used by `BlockImport` to check whether the authority set for a
      given block is still live, if the authority set isn't live then importing a
      change block requires a justification.
      
      * finality-grandpa: store justification on finalized transition blocks
      
      * finality-grandpa: check justification on authority set change blocks
      
      * finality-grandpa: poll grandpa liveness oracle every 10 seconds
      
      * finality-grandpa: spawn grandpa oracle in service setup
      
      * core: support multiple subscriptions per consensus gossip topic
      
      * finality-grandpa: create and verify justifications
      
      * finality-grandpa: update to local branch of grandpa
      
      * finality-grandpa: update to finality-grandpa v0.5.0
      
      * finality-grandpa: move grandpa oracle code
      
      * finality-grandpa: fix canonality check
      
      * finality-grandpa: clean up error handling
      
      * finality-grandpa: fix canonical_at_height
      
      * finality-grandpa: fix tests
      
      * runtime: update wasm binaries
      
      * core: add tests for finalizing block with justification
      
      * finality-grandpa: improve validation of justifications
      
      * core: remove unused IncompleteJustification block import error
      
      * core: test multiple subscribers for same consensus gossip topic
      
      * Revert "finality-grandpa: improve validation of justifications"
      
      This reverts commit 51eb2c58c2219801e876af6d6c9371bdd9ff2477.
      
      * finality-grandpa: fix commit validation
      
      * finality-grandpa: fix commit ancestry validation
      
      * finality-grandpa: use grandpa v0.5.1
      
      * finality-grandpa: add docs
      
      * finality-grandpa: fix failing test
      
      * finality-grandpa: only allow a pending authority set change per fork
      
      * finality-grandpa: fix validator set transition test
      e779eeb2
  7. Dec 07, 2018
  8. Dec 06, 2018
  9. Dec 05, 2018
  10. Dec 04, 2018
  11. Dec 03, 2018
    • Luke Schoen's avatar
      docs: (#1200) · 59e1801c
      Luke Schoen authored
      Fixes ordering of command-line arguments. `substrate --help` shows usage as substrate `[FLAGS] [OPTIONS] [SUBCOMMAND]`, where `--chain=staging` is one of the possible OPTIONS, and `build-spec` is a possible SUBCOMMAND.
      The ordering should be `substrate --chain=staging build-spec` instead.
      
      Relates to issue raised by user attente in Riot https://matrix.to/#/!HzySYSaIhtyWrwiwEV:matrix.org/$154385734133299JuBZU:matrix.parity.io
      59e1801c
    • asynchronous rob's avatar
      make block builder and construct_runtime! generic over inherent-data (#1191) · 63980e37
      asynchronous rob authored
      * make block builder generic over inherent-data
      
      * construct_runtime has you specify inherent data type
      
      * get all tests to compile
      63980e37
    • Bastian Köcher's avatar
      Cleanup the cli interface (#1194) · 69a288e5
      Bastian Köcher authored
      Parameters like `--dev`, `--base-path` or `--chain` were replicated
      for each subcommand and were also present in the "top". This pr removes
      these parameters from the subcommands.
      The subcommands also ignored stuff like `--dev` as it was only read in
      the top matcher, that did not look into the subcommand matchers.
      Now, if you specify one of the parameters for a subcommand, you will get
      an error instead of silently ignoring it.
      69a288e5
    • Bastian Köcher's avatar
    • asynchronous rob's avatar
      40e6c752
  12. Dec 01, 2018
  13. Nov 30, 2018
    • Drew Stone's avatar
      Implement macro for session change trait over arbitrary tuples (limit 19) (#1177) · 2327b213
      Drew Stone authored
      * Implement macro for session change trait
      
      * Consolidate tuple macro into one
      2327b213
    • Bastian Köcher's avatar
      Make `AuthorityId` serialize/deserialize to/from `ss58` (#1180) · 1dc56b48
      Bastian Köcher authored
      * Make `AuthorityId` serialize/deserialize to/from `ss58`
      
      * Updates the wasm files
      1dc56b48
    • Bastian Köcher's avatar
      Rewrite `impl_runtime_apis!` and `decl_runtime_apis!` as proc-macro (#1174) · ed421c56
      Bastian Köcher authored
      
      
      * Rewrites `impl_runtime_apis!` macro as `proc-macro`
      
      * Adds some documentation
      
      * Require the `impl_runtime_apis` to use a path for accessing the trait
      
      * Make the runtime implement `GetNodeBlockType`
      
      * Moves first chunk of runtime api code into the `impl_runtime_apis` macro
      
      This also renames `ClientWithApi` into `RuntimeApi`.
      
      * Make `impl_runtime_apis` use `runtime` api version automatically
      
      * `decl_runtime_apis` automatically adds `Block: BlockT` as generic parameter
      
      * Remove function generic arguments in block builder api
      
      * Remove some unnused stuff from the `decl_runtime_apis` macro
      
      * Make `InherentData` working again
      
      * Make `impl_runtime_apis!` implement the `RuntimeApi` side as well
      
      * Make it compile again after rebasing with master
      
      * Split `sr-api-macros` into multiple files
      
      * Reimplement `decl_runtime_apis!` as proc_macro
      
      * Use `decl_runtime_apis!` for `Core` as well and improve error reporting
      
      * Adds documentation for `decl_runtime_apis!` and `impl_runtime_apis!`
      
      * Move some code
      
      * Adds compile fail tests
      
      * Adds a test and fixes some bugs
      
      * Make `impl_runtime_apis!` support `_` as parameter name
      
      * Fixes build errors with wasm
      
      * Wasm rebuild after master rebase
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarbkchr <[email protected]>
      
      * Addresses some grumbles
      
      * Adds test to ensure that method signatures need to match
      
      * New wasm files
      ed421c56
    • Guanghua Guo's avatar
      Delete unused extern (#1178) · 309f627d
      Guanghua Guo authored
      309f627d