1. Sep 01, 2020
  2. Aug 31, 2020
  3. Aug 29, 2020
  4. Aug 28, 2020
  5. Aug 24, 2020
    • Shawn Tabrizi's avatar
      Enable verification logic when executing benchmarks (#6929) · bf843b8f
      Shawn Tabrizi authored
      * Add `--verify` flag to benchmark execution
      
      * make it so `--verify` can be used for getting the actual benchmarks
      
      * undo manual testing
      
      * oops
      
      * use benchmark config struct
      
      * verify is default on, docs update
      
      * remove clone
      
      * improve formatting
      
      * fix test
      
      * bump impl for ci
      bf843b8f
  6. Aug 23, 2020
    • Gavin Wood's avatar
      Time-delay proxies (#6770) · dfe2871b
      Gavin Wood authored
      
      
      * Time-delay proxies.
      
      * Tests
      
      * Initial couple of benchmarks
      
      * Fix up runtime
      
      * Last couple of benchmarks
      
      * Tests
      
      * Docs
      
      * Migration
      
      * add tests to proxy benchmarks
      
      * generated benchmarks, not integrated
      
      * Fix weight trait
      
      * integrate weightinfo
      
      * default weight
      
      * Grumble
      
      * Deduplication, split proxy from announced_proxy and don't require reauthentication
      
      * Fix
      
      * Remoe superfluous
      
      * Typos
      
      * Indent
      
      * Fix
      
      * Fixes
      
      * rename 'proxy_announced' -> 'announced_proxy'
      
      * flip rename
      
      * comments and spacing
      
      * fix proxy_announced
      
      * remove unneeded `execute` marker
      
      * Avoid unneeded changes to extrinsic indices
      
      * Cleanup
      
      * Fixes
      
      * Update Benchmarks and Weights for Delayed Proxy (#6811)
      
      * update bechmarks to parameterize announcements
      
      * remove announcement param from proxy
      
      * Update pallet_proxy.rs
      
      * Update weights
      
      * Bump runtime
      
      * Fix benchmark
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      dfe2871b
  7. Aug 21, 2020
  8. Aug 20, 2020
    • Benjamin Kampmann's avatar
      prepping for releasing rc6 (#6922) · be8bb186
      Benjamin Kampmann authored
      * Bump version
      
      * update test-utils crates to be ready for publishing
      
      * adding changelog
      
      * Adding automaticly generated READMEs
      
      * fixing versions
      
      * another version mishap
      2 tags
      be8bb186
    • Web3 Philosopher's avatar
      Merge Subkey into sc-cli (#4954) · 6e098a10
      Web3 Philosopher authored
      * draft
      
      * revert
      
      * WIP
      
      * all that remains is tests
      
      * update Cargo.lock
      
      * tests WIP
      
      * WIP refactor node-template-runtime and node-runtime
      
      * implments sc_cli::RuntimeAdapter for node_template_runtime::Runtime
      
      * final draft
      
      * fix update_config for subcommands
      
      * proper AccountId decoding
      
      * test-runtime tests
      
      * revert
      
      * move RuntimeAdapter to cli-utils
      
      * use &'static str for TryFrom::<&'a str>::Error for Ss58AddressFormat
      
      * tests
      
      * add frame-system to sc-cli dev-dependencies
      
      * add frame-system to sc-cli dev-dependencies
      
      * fix ui test
      
      * wip
      
      * fixed inspect test
      
      * bump impl version
      
      * bump impl version, fixx spaces remove todos
      
      * pallet-balances-cli, rustc for some reason cannot resolve pallet_balances_cli in node-cli 😩
      
      * wip
      
      * Subcommand::run takes &self
      
      * can't believe i missed that 🤦🏾‍♂️
      
      * bump wasm-bindgen for some reason
      
      * adds key subcommand, rename generate-node-key to generate-node-id
      
      * cargo update and crossed fingers 🤞🏽
      
      
      
      * update ui test
      
      * update more ui tests
      
      * should be all good now
      
      * revert subkey change
      
      * revert subkey change
      
      * adds frame-utilities-cli
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      
      * removes frame from sc-cli, fix license
      
      * my editor and ci disagrees on line width
      
      * bump spec version
      
      * turn off default features for parity-scale-codec
      
      * enable full_crypto feature for sp-core in cli-utils
      
      * merge frame-utilities-cli with pallet-balances-cli
      
      * remove full_crypto feature from sp_core in cli-utils
      
      * bump Cargo.lock
      
      * cli-utils -> frame-utils
      
      * rename BlockNumber to GenericNumber, fix spaces
      
      * fix spaces
      
      * construct additional_signed manually
      
      * sign test
      
      * remove unused vars
      
      * implement subkey with frame-utilities-cli and sc_cli
      
      * fix moduleid test
      
      * CI and clion disagree on line widths
      
      * adds associated Params type to SignedExtensionProvider
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      
      * move some code around
      
      * removes unneccesary generic params
      
      * moves module_id back to frame_utilities_cli
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * remove print_ext
      
      * remove MaybeDisplay from pallet_balances::Trait::Balance
      
      * a lot of stuff tbh
      
      * adds ExtrasParamsBuilder
      
      * remove tests for ModuleIdCmd
      
      * address comments from PR
      
      * bump Cargo.lock
      
      * manually insert key into keystore
      
      * remove unnecessary SharedParams
      
      * add validation to vanity pattern, remove unused arg
      
      * remove SharedParams from Sign, Vanity, Verify
      
      * remove SharedParams from ModuleIdCmd, remove expect from Verify, new line to Cargo.toml
      
      * remove SharedParams from InsertCmd
      
      * 🤦🏾
      
      ‍♂️
      
      * deleted prometheus.yml
      
      * move a few things around
      
      * fix vanity test
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      6e098a10
  9. Aug 19, 2020
  10. Aug 17, 2020
    • Shawn Tabrizi's avatar
      WeightInfo for System, Timestamp, and Utility (#6868) · 8e1ed7d9
      Shawn Tabrizi authored
      * initial updates to system
      
      * fix compile
      
      * Update writer.rs
      
      * update weights
      
      * finish system weights
      
      * timestamp weights
      
      * utility weight
      
      * Fix overflow in weight calculations
      
      * add back weight notes
      
      * Update for whitelisted benchmarks
      
      * add trait bounds
      
      * Revert "add trait bounds"
      
      This reverts commit 12b08b71.
      
      * Update weights for unaccounted for read
      8e1ed7d9
    • Wei Tang's avatar
      babe, aura, pow: only call check_inherents if authoring version is compatible (#6862) · 488b7c72
      Wei Tang authored
      * pow: check can_author_with before calling check_inherents
      
      * babe: check can_author_with before calling check_inherents
      
      * aura: check can_author_with before calling check_inherents
      
      * Fix node and node template compile
      
      * Add missing comma
      
      * Put each parameter on its own line
      
      * Add debug print
      
      * Fix line width too long
      
      * Fix pow line width issue
      488b7c72
  11. Aug 15, 2020
  12. Aug 14, 2020
    • Roman Borschel's avatar
      Update to libp2p-0.23. (#6870) · 13b0650c
      Roman Borschel authored
      * Update to libp2p-0.23.
      
      Thereby incorporate bandwidth measurement along the
      lines previously done by libp2p itself.
      
      * Tweak dependencies for wasm32 compilation.
      
      For wasm32 we need to enable unstable features to
      make `task::Builder::local` available.
      
      * Simplify dependencies.
      
      * Simplify.
      
      Leave the calculation of bytes sent/received per second
      to the outer layers of the code, subject to their own
      individual update intervals.
      
      * Cleanup
      
      * Re-add lost dev dependency.
      
      * Avoid division by zero.
      
      * Remove redundant metric.
      
      * Enable sending of noise legacy handshakes.
      
      * Add comment about monotonic gauge.
      
      * CI
      13b0650c
  13. Aug 12, 2020
    • Max Inden's avatar
      client/authority-discovery: Introduce AuthorityDiscoveryService (#6760) · 473a23f4
      Max Inden authored
      * client/authority-discovery: Rename AuthorityDiscovery to XXXWorker
      
      * client/authority-discovery: Introduce AuthorityDiscoveryService
      
      Add a basic `AuthorityDiscoveryService` implementation which enables
      callers to get the addresses for a given `AuthorityId` from the local
      cache.
      
      * client/authority-discovery: Split into worker and service mod
      
      Move `Service` and `Worker` to their own Rust modules resulting in the
      following file structure.
      
      ├── build.rs
      ├── Cargo.toml
      └── src
          ├── error.rs
          ├── lib.rs
          ├── service.rs
          ├── tests.rs
          ├── worker
          │   ├── addr_cache.rs
          │   ├── schema
          │   │   └── dht.proto
          │   └── tests.rs
          └── worker.rs
      
      * client/authority-discovery: Cache PeerId -> AuthorityId mapping
      
      * client/authority-discovery: Update priority group on interval
      
      Instead of updating the authority discovery peerset priority group each
      time a new DHT value is found, update it regularly on an interval.
      
      This removes the need for deterministic random selection. Instead of
      trying to return a random stable set of `Multiaddr`s, the `AddrCache`
      now returns a random set on each call.
      
      * client/authority-discovery: Implement Service::get_authority_id
      
      * client/authority-discovery: Use HashMap instead of BTreeMap
      
      * client/authority-discovery: Rework priority group interval
      
      * client/authority-discovery: Fix comment
      
      * bin/node/cli: Update authority discovery constructor
      
      * client/authority-discovery: Fuse from_service receiver
      
      * client/authority-discovery: Remove Rng import
      
      * client/authority-discovery: Ignore Multiaddr without PeerId
      
      * client/authority-discovery/service: Add note on returned None
      
      * client/authority-discovery/addr_cache: Replace double clone with deref
      473a23f4
    • mattrutherford's avatar
      Implement tracing::Event handling & parent_id for spans and events (#6672) · 0c3cdf16
      mattrutherford authored
      
      
      * implement events handling, implement parent_id for spans & events
      
      * add events to sp_io::storage
      
      * update test
      
      * add tests
      
      * adjust limit
      
      * let tracing crate handle parent_ids
      
      * re-enable current-id tracking
      
      * add test for threads with CurrentSpan
      
      * fix log level
      
      * remove redundant check for non wasm traces
      
      * remove duplicate definition in test
      
      * Adding conditional events API
      
      * prefer explicit parent_id over current,
      
      enhance test
      
      * limit changes to client::tracing event implementation
      
      * remove From impl due to fallback required on parent_id
      
      * implement SPAN_LIMIT
      
      change event log output
      
      * change version of tracing-core
      
      * update dependancies
      
      * revert limit
      
      * remove duplicate dependency
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      Co-authored-by: default avatarMatt Rutherford <[email protected]>
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      0c3cdf16
  14. Aug 10, 2020
    • Alexander Theißen's avatar
      seal: Change prefix and module name from "ext_" to "seal_" for contract callable functions (#6798) · 5f9e3553
      Alexander Theißen authored
      * seal: Change prefix "ext_" to "seal_" for contract callable functions
      
      The word Ext is a overloaded term in the context of substrate. It usually
      is a trait which abstracts away access to external resources usually in order
      to mock them away for the purpose of tests. The contract module has its own
      `Ext` trait in addition the the substrate `Ext` which makes things even more
      confusing.
      
      In order to differentiate the contract callable functions more clearly from
      this `Ext` concept we rename them to use the "seal_" prefix instead.
      
      This should change no behaviour at all. This is a pure renaming commit.
      
      * seal: Rename import module from "env" to "seal0"
      
      * seal: Fixup integration test
      
      * seal: Add more tests for new import module names
      5f9e3553
    • Hernando Castano's avatar
      Add Subscription RPC for Grandpa Finality (#5732) · eb0e05e1
      Hernando Castano authored
      
      
      * Rough skeleton for what I think the RPC should look like
      
      * Create channel for sending justifications
      
      Sends finalized header and justification from Grandpa to the
      client. This lays the groundwork for hooking into the RPC module.
      
      * WIP: Add subscribers for justifications to Grandpa
      
      Adds the Sender end of a channel into Grandpa, through which notifications
      about block finality events can be sent.
      
      * WIP: Add a struct for managing subscriptions
      
      Slightly different approach from the last commit, but same
      basic idea. Still a rough sketch, very much doesn't compile yet.
      
      * Make naming more clear and lock data in Arc
      
      * Rough idea of what RPC would look like
      
      * Remove code from previous approach
      
      * Missed some things
      
      * Update client/rpc-api/src/chain/mod.rs
      
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      
      * Update client/rpc-api/src/chain/mod.rs
      
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      
      * Split justification subscription into sender and receiver halves
      
      * Replace RwLock with a Mutex
      
      * Add sample usage from the Service's point of view
      
      * Remove code that referred to "chain_" RPC
      
      * Use the Justification sender/receivers from Grandpa LinkHalf
      
      * Add some PubSub boilerplate
      
      * Add guiding comments
      
      * TMP: comment out to fix compilation
      
      * Return MetaIoHandler from PubSubHandler in create_full
      
      * Uncomment pubsub methods in rpc handler (fails to build)
      
      * node/rpc: make Metadata concrete in create_full to fix compilation
      
      * node: pass in SubscriptionManger to grandpa rpc handler
      
      * grandpa-rpc: use SubscriptionManger to add subscriber
      
      * grandpa-rpc: attempt at setting up the justification stream (fails to build)
      
      * grandpa-rpc: fix compilation of connecting stream to sink
      
      * grandpa-rpc: implement unsubscribe
      
      * grandpa-rpc: update older tests
      
      * grandpa-rpc: add full prefix to avoid confusing rust-analyzer
      
      * grandpa-rpc: add test for pubsub not available
      
      * grandpa-rpc: tidy up leftover code
      
      * grandpa-rpc: add test for sub and unsub of justifications
      
      * grandpa-rpc: minor stylistic changes
      
      * grandpa-rpc: split unit test
      
      * grandpa-rpc: minor stylistic changes in test
      
      * grandpa-rpc: skip returning future when cancelling
      
      * grandpa-rpc: reuse testing executor from sc-rpc
      
      * grandpa-rpc: don't need to use PubSubHandler in tests
      
      * node-rpc: use MetaIoHandler rather than PubSubHandler
      
      * grandpa: log if getting header failed
      
      * grandpa: move justification channel creation into factory function
      
      * grandpa: make the justification sender optional
      
      * grandpa: fix compilation warnings
      
      * grandpa: move justification notification types to new file
      
      * grandpa-rpc: move JustificationNotification to grandpa-rpc
      
      * grandpa-rpc: move JustificationNotification to its own file
      
      * grandpa: rename justification channel pairs
      
      * grandpa: rename notifier types
      
      * grandpa: pass justification as GrandpaJustification to the rpc module
      
      * Move Metadata to sc-rpc-api
      
      * grandpa-rpc: remove unsed error code
      
      * grandpa: fix bug for checking if channel is closed before sendind
      
      * grandpa-rpc: unit test for sending justifications
      
      * grandpa-rpc: update comments for the pubsub test
      
      * grandpa-rpc: update pubsub tests with more steps
      
      * grandpa-rpc: fix pubsub test
      
      * grandpa-rpc: minor indendation
      
      * grandpa-rpc: decode instead of encode in test
      
      * grandpa: fix review comments
      
      * grandpa: remove unused serde dependency
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      Co-authored-by: default avatarJon Häggblad <[email protected]>
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      eb0e05e1
    • Joshy Orndorff's avatar
      Update pinned wasm-bindgen dependency (#6861) · 6f31766f
      Joshy Orndorff authored
      * Update dependency.
      
      * Update readme docs
      
      * update python webserver command
      6f31766f
  15. Aug 07, 2020
  16. Aug 06, 2020
  17. Aug 05, 2020
  18. Aug 04, 2020
    • thiolliere's avatar
      pallet-democracy use of weightinfo (#6783) · 549050b7
      thiolliere authored
      * democracy use of weightinfo
      
      * fix some doc and benchs
      
      * todo generate from parity machine
      
      * factorize and add license
      
      * use final weights
      
      * add slightly more sensible default weight
      
      * refactor
      
      * rename benchmark to avoid confusion
      
      * just make remove_other_vote benchmark being the worst case of the extrinsic
      549050b7
  19. Aug 03, 2020
    • Ashley's avatar
      Convert spaces to tabs (#6799) · 584588b7
      Ashley authored
      584588b7
    • Bastian Köcher's avatar
      Fix transaction payment runtime api (#6792) · 54e62985
      Bastian Köcher authored
      The transaction payment runtime api used its own extrinsic generic
      parameter. This is wrong, because this resulted in using always the
      native extrinsic. If there was a runtime upgrade that changed the
      extrinsic in some way, it would result in the api breaking. The correct
      way is to use the `Extrinsic` from the `Block` parameter. This is on the
      node side the opaque extrinsic and on the runtime side the real extrinsic.
      54e62985
  20. Jul 30, 2020
  21. Jul 29, 2020
    • Alexander Theißen's avatar
      seal: Add benchmarks for dispatchables (#6715) · 4e832cdb
      Alexander Theißen authored
      * seal: Fix syntax that confuses rust-analyzer
      
      * seal: Add benchmarks for Dispatchables
      
      These are only the benchmarks for the dispatchables of
      the pallet. Those are not listed in the Schedule because
      we do not want to pull the Schedule from storage before
      dispatching.
      
      This OK because those costs are not related to actual contract
      execution. Those costs (instruction costs, ext_* costs) will
      be benchmarked seperatly and entered into the default Schedule.
      
      * seal: Add a maximum code size
      
      * Fix comments from review
      
      * Removed SEED constant
      4e832cdb
  22. Jul 28, 2020
  23. Jul 27, 2020
  24. Jul 26, 2020
  25. Jul 22, 2020
    • Wei Tang's avatar
      Better handling of stable-only build (#6569) · 17922fe4
      Wei Tang authored
      
      
      * Better handling of stable-only build
      
      * Fix node template build
      
      * Fix wasm builder node-template version mismatch
      
      * Fix load_spec error
      
      * Add , in parameter
      
      * Add descrptive panic messages in tests
      
      * Add descriptive tests in node/executor benches
      
      * Fix missing compact_code_unwrap
      
      * Add missing wasm_binary_unwrap function for executor integration test
      
      * Only define import_sp_io in no_std
      
      * Small Cargo.toml styling fix
      
      * Bump wasm-builder to 2.0.0
      
      * Fix all `with_wasm_builder_from_crates` version in Substrate
      
      * Use `with_wasm_builder_from_crates` for node-template
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      17922fe4
    • Ashley's avatar
      Remove the service builder (#6557) · 08c3d65c
      Ashley authored
      
      
      * :)
      
      * Slight tidy
      
      * Remove ServiceBuilderCommand
      
      * Remove whitespace
      
      * Keep task manager alive for check_block/import_blocks
      
      * Pass task_manager to run_until_exit
      
      * WIP
      
      * WIP
      
      * Get rid of the macros
      
      * Simplify a few chain components creation APIs related to the service
      
      * Fix basic-authorship doc tests
      
      * Remove DefaultQueue
      
      * Update client/service/src/builder.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Move ExecutionExtensions comment around
      
      * Remove unused BlakeTwo256
      
      * Add sc-prelude
      
      * Rename sc-prelude to sc-service-prelude
      
      * Rename to sc-service-types
      
      * Improve service types
      
      * Fix line widths
      
      * Remove sc-service-types and move type definitions to crates
      
      * Update bin/node-template/node/src/service.rs
      
      Co-authored-by: default avatarSeun Lanlege <[email protected]>
      
      * Add TLightClientWithHash
      
      * Rework types
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      Co-authored-by: default avatarSeun Lanlege <[email protected]>
      08c3d65c
    • ddorgan's avatar
      Reset flaming fir network (#6703) · a3ecfbb2
      ddorgan authored
      a3ecfbb2
  26. Jul 21, 2020