1. Dec 11, 2019
    • Benjamin Kampmann's avatar
      Clean up crate names and locations (#4361) · 9ce7e1f7
      Benjamin Kampmann authored
      * rename crate: sp-transaction-pool-api -> sp-transaction-pool
      
      * move primitives/core/derive-debug -> primitives/derive-debug; primitives/core/storage -> primitives/storage
      
      * rename crate sp-core-storage -> sp-storage
      
      * rename and move: test/utils/transaction-factory -> client/transaction-factory
      
      * move transaction-factory -> node/transaction-factory
      
      * fix missing rename
      
      * Move chain-spec-builder into bin/utils
      
      * move subkey into bin/utils
      
      * Update new subkey location
      
      * Update docs to reflect new location for utils
      
      * fixing import name
      9ce7e1f7
    • Benjamin Kampmann's avatar
      Fix folder names in primitives (#4358) · 824009b4
      Benjamin Kampmann authored
      * sr-arithmetic -> arithmetic
      
      * sr-sandbox -> sandbox
      
      * primitives/sr-staking-primitives -> primitives/staking
      
      * primitives/sr-version -> primitives/version
      
      * primitives/block-builder/runtime-api -> primitives/block-builder
      824009b4
  2. Dec 10, 2019
  3. Dec 09, 2019
  4. Dec 07, 2019
  5. Dec 06, 2019
  6. Dec 05, 2019
  7. Dec 03, 2019
    • Bryant Eisenbach's avatar
      fix: Typo granpda -> grandpa (#4286) · fc6914cd
      Bryant Eisenbach authored and asynchronous rob's avatar asynchronous rob committed
      fc6914cd
    • Max Inden's avatar
      client: Introduce --sentry-nodes flag (#4285) · e2e3c246
      Max Inden authored
      * client/authority-discovery: Add smoke tests for intervall_at
      
      * client/authority-discovery: Fix interval_at to fire on start
      
      * .maintain/sentry-node: Update docker compose file
      
      * client: Introduce --sentry-nodes flag
      
      Enable operators to specify the public addresses of sentry nodes infront
      of a validator node so that the validator node can announce the sentry
      node addresses instead of its own public addresses on the DHT via the
      authority discovery module.
      
      * client/authority-discovery: Break lines at 100 characters
      
      Limit line length to 100 instead of 120 characters.
      e2e3c246
    • Keith Ingram's avatar
      Council members (#4279) · 186f9f87
      Keith Ingram authored
      186f9f87
  8. Dec 02, 2019
  9. Dec 01, 2019
  10. Nov 29, 2019
  11. Nov 28, 2019
    • Arkadiy Paronyan's avatar
      Check block CLI command (#4240) · 4031142b
      Arkadiy Paronyan authored
      * Check block operation
      
      * Update client/cli/src/lib.rs
      
      * Update client/cli/src/params.rs
      4031142b
    • Qinxuan Chen's avatar
      Prune some duplicate dependencies (#4219) · 1d746bfa
      Qinxuan Chen authored
      
      
      * Prune some duplicate dependencies
      
      * Remove ed25519-dalek 0.9.1
      * Remove hex 0.3.2
      * Remove parity-wasm 0.40.3
      * Remove pwasm-utils 0.11.0
      * Remove wasmi-validation 0.2.0
      * Remove quickcheck 0.8.5
      * Remove tempdir (Replace tempdir with tempfile)
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      
      * Remove useless tempdir_with_prefix
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      
      * Remove derive_more 0.15
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      1d746bfa
    • Svyatoslav Nikolsky's avatar
      Recover transaction pool on light client (#3833) · 2ffaf054
      Svyatoslav Nikolsky authored
      
      
      * recover tx pool on light client
      
      * revert local tests fix
      
      * removed import renamings
      
      * futures03::Future -> std::future::Future
      
      * Update core/transaction-pool/graph/src/error.rs
      
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      
      * replace remove_from_ready with remove_invalid
      
      * avoid excess hashing
      
      * debug -> warn
      
      * TransactionPool + BasicTransactionPool
      
      * pause future tx reject when resubmitting
      
      * bump impl_version to make CI happy
      
      * and revert back local test fixes
      
      * alter doc to restart CI
      
      * Transaction::clone() -> Transaction::duplicate()
      
      * transactions -> updated_tranasctions
      
      * remove explicit consensus-common ref
      
      * ::std:: -> std::
      
      * manual set/unset flag -> calling clusore with given flag value
      
      * removed comments
      
      * removed force argument
      
      * BestIterator -> Box<Iterator>
      
      * separate crate for TxPool + Maintainer trait
      
      * long line fix
      
      * pos-merge fix
      
      * fix benches compilation
      
      * Rename txpoolapi to txpool_api
      
      * Clean up.
      
      * Finalize merge.
      
      * post-merge fix
      
      * Move transaction pool api to primitives directly.
      
      * Consistent naming for txpool-runtime-api
      
      * Warn about missing docs.
      
      * Move  abstraction for offchain calls to tx-pool-api.
      
      * Merge RPC instantiation.
      
      * Update cargo.lock
      
      * Post merge fixes.
      
      * Avoid depending on client.
      
      * Fix build
      2ffaf054
    • Bastian Köcher's avatar
      The storage runtime interface should not enforce a hash type (#4231) · b9e7f09a
      Bastian Köcher authored
      
      
      * The storage runtime interface should not enforce a hash type
      
      Currently the runtime interface enforces `H256` as hash type, but in the
      future people could use whatever they want as hash type. The hash type
      always needs to match between the runtime and the node, but that is
      already required.
      
      * Update primitives/externalities/src/lib.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      b9e7f09a
  12. Nov 27, 2019
    • asynchronous rob's avatar
      safe multi-era slashing for NPoS (#3846) · b853a4f9
      asynchronous rob authored
      
      
      * define slashing spans
      
      * tests and pruning for slashing-spans record
      
      * validators get slashed before nominators
      
      * apply slash to nominators as well
      
      * chill and end slashing spans
      
      * actually perform slashes
      
      * integration (tests failing)
      
      * prune metadata
      
      * fix compilation
      
      * some tests for slashing and metadata garbage collection
      
      * correctly pass session index to slash handler
      
      * test span-max property for nominators and validators
      
      * test that slashes are summed correctly
      
      * reward value computation
      
      * implement rewarding
      
      * add comment about rewards
      
      * do not adjust slash fraction in offences module
      
      * fix offences tests
      
      * remove unused new_offenders field
      
      * update runtime version
      
      * fix up some docs
      
      * fix some CI failures
      
      * remove no-std incompatible vec! invocation
      
      * try to fix span-max rounding error
      
      * Update srml/staking/src/slashing.rs
      
      Fix type: winow -> window
      
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      
      * slashes from prior spans don't kick validator again
      
      * more information for nominators, suppression
      
      * ensure ledger is consistent with itself post-slash
      
      * implement slash out of unlocking funds also
      
      * slashing: create records to be applied after-the-fact
      
      * queue slashes for a few eras later
      
      * method for canceling deferred slashes
      
      * attempt to fix test in CI
      
      * storage migration for `Nominators`
      
      * update node-runtime to use SlashDeferDuration
      
      * adjust migration entry-points somewhat
      
      * fix migration compilation
      
      * add manual Vec import to migration
      
      * enable migrations feature in node-runtime
      
      * bump runtime version
      
      * update to latest master crate renames
      
      * update to use ensure-origin
      
      * Apply suggestions from code review
      
      use `ensure!`
      
      Co-Authored-By: default avatarGavin Wood <[email protected]>
      
      * fix multi-slash removal
      
      * initialize storage version to current in genesis
      
      * add test for version initialization
      b853a4f9
    • thiolliere's avatar
      Implement all storage after prefix (#4227) · a512dcdd
      thiolliere authored
      * Implement all storage after prefix
      
      * fix test, bump version and fix doc
      
      * bump metadata version
      
      * Update frame/support/procedural/src/storage/storage_struct.rs
      a512dcdd
  13. Nov 26, 2019
    • Benjamin Kampmann's avatar
      Remove all (non-dev) `client` references from `frame`, activate dependency enforcer (#4184) · b3a7c8e4
      Benjamin Kampmann authored
      * Move transaction pool to primitives
      
      * move backend, errors into primitives
      
      * remove unused client depencies
      
      * Move rpc-api into primitives
      
      * Move peerset back to client
      
      * Move rpc/api back to client, move palette/support/rpc into utils
      
      * move support-rpc into subfolder
      
      * move system-rpc into utils
      
      * move transaction-pool  and -graph back into client
      
      * fix broken imports
      
      * Clean up test primitives
      
      * Make support test utils independent of frame
      
      * remove unnecessary node dependencies from service
      
      * Reactivate dependency script:
       - only enforce the now achieved status quo will remain
       - allow for primitives to depend on /client for now without failing
       - more discriptive error message so people understand, what it wants
       - minor fix to differentiative between ../client and /client (which may be a subfolder)
       - don't allow this to fail anylonger.
      
      * fix doc comment
      
      * 'Should not' rather than 'must not'.
      
      * Revert unwanted dependency changes
      
      * fix faulty import
      
      * fixup derive_more version
      
      * fix wrong import path
      b3a7c8e4
    • Qinxuan Chen's avatar
      Update some dependencies: (#4207) · 3f519863
      Qinxuan Chen authored
      
      
      - derive_more 0.15 -> 0.99
      - strum 0.15 -> 0.16
      - slog_derive 0.1 -> 0.2
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      3f519863
    • Weiliang Li's avatar
      Sort node/cli/Cargo.toml (#4205) · edab4ed2
      Weiliang Li authored
      edab4ed2
  14. Nov 25, 2019
    • Alexey's avatar
      Refactor `construct_runtime` to procedural (#3810) · 298b6324
      Alexey authored
      
      
      * interim
      
      * interim
      
      * interim
      
      * first working section
      
      * cleanup
      
      * finished parsing
      
      * cleanup
      
      * added system module search
      
      * added clone and find_entry
      
      * generic find_module_entry
      
      * interim
      
      * working event
      
      * added generic event with no instance error
      
      * cleanup
      
      * added decl origin
      
      * cleanup
      
      * added all modules
      
      * added outer dispatch
      
      * added modules expansion
      
      * refactored transformations
      
      * updated error message
      
      * added resolve mechanics
      
      * added metadata
      
      * finished config
      
      * finished inherents
      
      * added validate_unsigned
      
      * added compares
      
      * cleanup
      
      * cleanup
      
      * cleanup
      
      * fix
      
      * updated modules for last one wins
      
      * cleanup
      
      * made nested modules
      
      * updated impl version
      
      * removed comment
      
      * cleanup
      
      * added ui tests
      
      * added optional comma
      
      * removed unnecessary to string cast
      
      * removed no compile
      
      * cleanup
      
      * fmt
      
      * returned nocompile
      
      * Update srml/support/procedural/src/construct_runtime/parse.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * added where definition
      
      * updated ui tests
      
      * updated ui test cases
      
      * added test case
      
      * updated tests
      
      * interim
      
      * added parse for module part
      
      * removed totokens
      
      * fixes
      
      * fixed multiple iter
      
      * changed TokenStream
      
      * fmt
      
      * updated trybuild
      
      * added test for arguments
      
      * fmt
      
      * fixes + more tests
      
      * fixes
      
      * fmt
      
      * rolled back runtime
      
      * minor fixes
      
      * empty
      
      * fixes
      
      * fmt
      
      * Update paint/support/procedural/src/lib.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update paint/support/procedural/src/lib.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update paint/support/procedural/src/construct_runtime/parse.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * interim
      
      * refactored seen_keys
      
      * refactored hash_set
      
      * Update paint/support/procedural/src/construct_runtime/mod.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * refactored find
      
      * fix
      
      * fixed all_modules
      
      * added double declaration check
      
      * small fix
      
      * fmt
      
      * fix
      
      * fix default
      
      * format
      298b6324
    • Xiliang Chen's avatar
      PaysFee for DispatchInfo (#4165) · 1078691b
      Xiliang Chen authored
      
      
      * Add PaysFee trait
      
      * bump version
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * line width
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * fix test
      
      * fix test
      
      * fix test
      1078691b
  15. Nov 23, 2019
    • Bastian Köcher's avatar
      Switch to new kvdb-rocksdb (#4186) · eef00ea7
      Bastian Köcher authored
      
      
      * Switch to new rocksdb with some hacks to resolve linking errors
      
      Rocksdb and `wasmtime-environ` both link `zstd`. In the final link step,
      this leads to linking errors because of duplicate symbols. The linked
      Rocksdb fixes this by using `zstd-sys` as well. However, this currently
      also requires modifications in `zstd-sys`. Someone will need to come up
      with a better implementation.
      
      * Switch to new version of kvdb-rocksdb
      
      * Update client/db/src/utils.rs
      
      Co-Authored-By: default avatarShawn Tabrizi <[email protected]>
      eef00ea7
  16. Nov 22, 2019
    • Shawn Tabrizi's avatar
      Rename Palette to FRAME (#4182) · 1f26179a
      Shawn Tabrizi authored
      
      
      * palette -> frame
      
      * PALETTE, Palette -> FRAME
      
      * Move folder pallete -> frame
      
      * Update docs/Structure.adoc
      
      Co-Authored-By: default avatarBenjamin Kampmann <[email protected]>
      
      * Update docs/README.adoc
      
      Co-Authored-By: default avatarBenjamin Kampmann <[email protected]>
      
      * Update README.adoc
      1f26179a
    • Sergey Pepyakin's avatar
      Renaming and documentation for ApplyResult, ApplyOutcome and et al (#4134) · d88fff59
      Sergey Pepyakin authored
      
      
      * Remove superflous errors from the system module
      
      * Rename and document InclusionOutcome
      
      * Rename InclusionError
      
      * Remove unused inclusion errors.
      
      I left the enumeration though since other elements might be used some day.
      
      * Rename and document DispatchOutcome
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      
      * TransactionValidityError instead of InclusionError
      
      * Rename InclusionOutcome to ApplyExtrinsicResult
      
      * Update docs.
      
      * Update lib.rs
      
      should be → is
      
      * Bump the block builder API version.
      
      * Fix the should_return_runtime_version test
      
      * Clean the evidence
      d88fff59
    • Tomasz Drwięga's avatar
      Offchain execution extensions (#4145) · 06f6daab
      Tomasz Drwięga authored
      * Pass Extensions instead of individual objects.
      
      * Move TransactionPool to a separate ExternalitiesExtension.
      
      * Fix compilation.?
      
      * Clean up.
      
      * Refactor testing utilities.
      
      * Add docs, fix tests.
      
      * Fix doctest.
      
      * Fix formatting and add some logs.
      
      * Add some docs.
      
      * Remove unused files.
      06f6daab
    • Gavin Wood's avatar
      Publish the dispatch info in extrinsic events (#4148) · 371074cb
      Gavin Wood authored
      * Publish the dispatch info in extrinsic events
      
      Place the DispatchInfo (which contains weight information about the
      extrinsic that is otherwise difficult to determine) in the dispatch
      result value.
      
      * Runtime bump.
      
      * Fix build
      
      * Fix tests
      
      * Fix build?
      371074cb