Skip to content
  1. Nov 23, 2020
  2. Nov 22, 2020
  3. Nov 18, 2020
  4. Nov 16, 2020
    • Andrew Plaza's avatar
      make ClientConfig public (#7544) · 4040eb08
      Andrew Plaza authored
      4040eb08
    • Max Inden's avatar
      *: Update to libp2p v0.30.0 (#7508) · 75e365a5
      Max Inden authored
      * *: Update to libp2p v0.30.0
      
      * Cargo.lock: Update
      
      * *: Update to libp2p v0.30.1
      75e365a5
    • Pierre Krieger's avatar
      Use inbound peerslot slots when a substream is received, rather than a connection (#7464) · 80a74acd
      Pierre Krieger authored
      
      
      * Use inbound peerslot slots when a substream is received, rather than a connection
      
      * Refactor PeerState
      
      * Some bugfixes
      
      * Fix warnings so that CI runs, gmlrlblbl
      
      * Bugfixes
      
      * Update docs
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarRoman Borschel <[email protected]>
      
      * Clean up Banned state
      
      * Refactor connections state
      
      * Fix possibility of Enabled with no Opening or Open connection
      
      * Line width
      
      * Add some debug_asserts! and fix TODO
      
      * Refactor legacy handler
      
      * Rewrite group.rs entirely [part 1]
      
      * Rewrite group.rs entirely [part 2]
      
      * Remove faulty assertion
      
      Because of the asynchronous nature of the behaviour <-> handler communications, it is possible to receive notifications while in the Closing state
      
      * Don't poll the legacy substream is not Open
      
      * Tolerate when not all substreams are accepted
      
      * Remove TODOs
      
      * Dummy commit to make CI log interesting things
      
      * Try race condition fix
      
      * Revert "Try race condition fix"
      
      This reverts commit 0675c659d06195c30f8c5bc13e2d88141d57a3ba.
      
      * Correctly rebuild pending_opening
      
      * Minor tweaks
      
      * Printlns for CI debugging
      
      * Revert "Printlns for CI debugging"
      
      This reverts commit e7852a231f4fc418898767aaa27c9a4358e12e8b.
      
      * Revert "Dummy commit to make CI log interesting things"
      
      This reverts commit 259ddd74088e53e7c6a9b0a62a8d1573a0063ce3.
      
      * mv group.rs ../handler.rs
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      * Banned => Backoff
      
      * Mention the actual PeerStates
      
      * OpenDesired -> OpenDesiredByRemote
      
      * OpeningThenClosing
      
      * Add doc links to PeerState
      
      * Simplify increment logic
      
      * One more debug_assert
      
      * debug_assert!
      
      * OpenDesiredByRemote
      
      * Update client/network/src/protocol/generic_proto/behaviour.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      Co-authored-by: default avatarRoman Borschel <[email protected]>
      Co-authored-by: default avatarMax Inden <[email protected]>
      80a74acd
    • Andrew Plaza's avatar
      make LocalCallExecutor public (#7528) · 32be2645
      Andrew Plaza authored
      32be2645
  5. Nov 13, 2020
  6. Nov 12, 2020
  7. Nov 11, 2020
    • Wei Tang's avatar
      Export app-crypto specific keystore functions (#7489) · 2bd9486b
      Wei Tang authored
      * Export app-crypto specific keystore functions
      
      * Also add back the insert function
      
      * Switch KeystoreContainer to an enum
      
      * Only export the bare minimal for LocalKeystore and fix service compile
      
      * fix: should return Arc
      
      * Add docs stating that functions only available in local keystore
      
      * Remove insert and generate functions
      
      * fix: generate function should be available in test
      
      * Add keypair function to trait
      
      * Revert "Add keypair function to trait"
      
      This reverts commit ad921b09ca73d3c09298e3a51b562ef8e0067781.
      
      * Add note for local_keystore function in service
      2bd9486b
    • Jon Häggblad's avatar
      slots: incrementally backoff claiming slots if finality lags behind (#7186) · 7cf78c16
      Jon Häggblad authored
      
      
      * babe: backoff authoring blocks when finality lags
      
      * babe: move backoff authoring params to default constructor
      
      * babe: deduplicate the test a bit
      
      * babe: set backoff constants in service
      
      * babe: use better names for backoff authoring block parameters
      
      * babe: remove last unwrap
      
      * babe: slight style tweak
      
      * babe: fix comment
      
      * slots: move backoff block authorship logic to SimpleSlotWorker
      
      * aura: append SlotInfo in on_slot
      
      * slots: use the correct types for parameters
      
      * slots: fix review comments
      
      * aura: add missing backoff authoring blocks parameters
      
      * slots: add comments for default values
      
      * slots: add additional checks in test
      
      * slots: update implementation for new master
      
      * slots: revert the change to SlotInfo
      
      * Fix review comments
      
      * slots: rework unit tests for backing off claiming slots
      
      * slots: add test for asymptotic behaviour for slot claims
      
      * slots: address review comments
      
      * slots: add test for max_interval
      
      * slots: add assertion for intervals between between claimed slots
      
      * slots: remove rustfmt directive
      
      * slots: another attempt at explaining authoring_rate
      
      * slots: up unfinalized_slack to 50 by default
      
      * slots: add tests for time to reach max_interval
      
      * slots: fix typo in comments
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * slots: additional tweaks to comments and info calls
      
      * slots: rename to BackoffAuthoringOnFinalizedHeadLagging
      
      * slots: make the backing off strategy generic
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * slots: implement backoff trait for () for simplicity
      
      * slots: move logging inside backing off function to make it more specific
      
      * aura: add missing function parameter
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      7cf78c16
    • Bastian Köcher's avatar
      Skip slot lenience on first block in BABE (#7515) · 48a84f90
      Bastian Köcher authored
      The genesis header doesn't have the BABE pre-digest and we insert `0` as
      slot number. The slot lenience calculation will return the maximum in
      this situation. Besides returning the maximum which is not bad at all,
      it also prints some a debug message that can be confusing in the first
      moment. To prevent printing this debug message, we now just return early
      when we see that the parent block is the genesis block.
      48a84f90
  8. Nov 05, 2020
  9. Nov 04, 2020
    • Web3 Philosopher's avatar
      Allow BabeConsensusDataProvider fork existing chain (#7078) · 6328f874
      Web3 Philosopher authored
      * parent affbc38a
      
      
      author Seun Lanlege <[email protected]> 1599568164 +0100
      committer Seun Lanlege <[email protected]> 1604321289 +0100
      gpgsig -----BEGIN PGP SIGNATURE-----
      
       iQGzBAABCgAdFiEECvQ02MnjnssnSbjr3HzzEhjN254FAl+gAAkACgkQ3HzzEhjN
       254soAv+KO5JA0HXSe0R0XS5TnwA3IxYsW+UvdF5dXFeC3jFdGTMvor818uoBePD
       dxzYEsUK6gjsNcM9+hpFhoy5JnUrUPInd2BZ7pmZiDuXmYJrHi0s7K5qL0EYDoe0
       m1egPNNyRR125ozJ24M+09c3OQsi3bvTx1TJaV9Aov8hK4So8UmlJTHWpkLw97ku
       HuTre2IPSFbV4GwJE40V+KNuDVHxaKL7zrInYScqbr6/hOTqBCvFn4ib3CjpF5HG
       zDAA5S2PrcbL9NQOothVcVB/TZr3IkhglCFqEjVyCX80IL0JkNZkw8jAh0B8uqXx
       Ug/c1/Mssa8F1jLZMmW45Cway60txqVbcWntPJAymGJbrRErOO/++oUrV0u1C65u
       LW7gXAaIJWQTX9KnX0SEyejNod7ubZktBz7n5WfkJAPIzdw5wtJalhLa673YTgQ9
       zyTPKiWjJj2myCq1AYrJvlK8hSsIBqbBFcUf1zX4SzZWKS+5mtp51o4gfVzcCRPd
       z/6/iPbB
       =g5tx
       -----END PGP SIGNATURE-----
      
      BabeConsensusDataProvider works with existing chains
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      6328f874
  10. Oct 30, 2020
  11. Oct 29, 2020
  12. Oct 28, 2020
  13. Oct 27, 2020
  14. Oct 26, 2020
    • Andrew Plaza's avatar
      WASM Local-blob override (#7317) · 74910c48
      Andrew Plaza authored
      
      
      * Provide WASM overwrite functionality in LocalCallExecutor
      
      - add a new module `wasm_overwrite.rs` in client
        - scrapes given folder for runtimes
      - add two new CLI Options `wasm-overwrite` and `wasm_overwrite_path`
      
      * formatting
      
      * Make comment clearer
      
      remove sc-runtime-test from dev-dependencies
      
      * comments
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Fix spaces, remove call into backend for 'heap_pages' in 'try_replace'
      
      * Error if path is not a directory, Comments,
      
      Doc Comment for WasmOverwrite
      
      * make WasmOverwrite Option<>
      
      * Change to one CLI argument for overwrites
      
      - move getting runtime version into LocalCallExecutor
      
      * change unwrap() to expect()
      
      * comment
      
      * Remove `check_overwrites`
      
      * Encapsulate checking for overwrites in LocalCallExecutor
      
      * move duplicate code into function
      
      * Update client/cli/src/params/import_params.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * comma
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * cache hash in WasmBlob
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/service/src/client/client.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * move getting overwrite into its own function
      
      * fix error when directory is not a directory
      
      * Error on duplicate WASM runtimes
      
      * better comment, grammar
      
      * docs
      
      * Revert StateBackend back to _
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/service/src/client/call_executor.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Add two tests, fix doc comments
      
      Add a test for the runtime_version method of WasmOverwrite
      Add a test for check_overwrite method of LocalCallExecutor
      
      * remove redundant `Return` from expect msg
      
      * Update client/cli/src/params/import_params.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update client/service/src/client/call_executor.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update client/service/src/config.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Add Module Documentation, match on '.wasm' extension
      
      * Add test for scraping WASM blob
      
      * fix expect
      
      * remove creating another block in LocalCallExecutor test
      
      * remove unused import
      
      * add tests for duplicates and scraping wasm
      
      * make tests a bit nicer
      
      * add test for ignoring non-.wasm files
      
      * check error message in test
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * remove println
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * make tests prettier
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * comment for seemingly random client
      
      * locally-built -> custom
      
      * remove unused import
      
      * fix comment
      
      * rename all references to overwrite with override
      
      * fix cli flag in module documentation
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarDavid <[email protected]>
      74910c48
    • André Silva's avatar
      grandpa: don't send equivocation reports for local identities (#7372) · f2925f96
      André Silva authored
      * grandpa: don't send equivocation reports for local identities
      
      * grandpa: add test for self-report
      
      * grandpa: fix test compilation
      
      this works on rust nightly but breaks on ci which is using rust stable
      f2925f96
    • André Silva's avatar
      grandpa: fix early enactment of forced changes (#7321) · 568dd6fd
      André Silva authored
      * grandpa: fix early enactment of forced authority set changes
      
      * grandpa: add test for early enactment of forced changes
      
      * grandpa: fix typo in log message
      
      * grandpa: only allow one pending forced change per fork
      
      * grandpa: fix tests
      568dd6fd
    • Max Inden's avatar
      client/authority-discovery: Remove sentry node logic (#7368) · 653868c0
      Max Inden authored
      * client/authority-discovery: Remove sentry node logic
      
      The notion of sentry nodes has been deprecated (see [1] for details).
      This commit removes support for sentry nodes in the
      `client/authority-discovery` module.
      
      While removing `Role::Sentry` this commit also introduces
      `Role::Discover`, allowing a node to discover addresses of authorities
      without publishing ones own addresses. This will be needed in Polkadot
      for collator nodes.
      
      [1] https://github.com/paritytech/substrate/issues/6845
      
      * client/authority-discovery/service: Improve PeerId comment
      653868c0
  15. Oct 23, 2020
  16. Oct 22, 2020
  17. Oct 21, 2020
    • Max Inden's avatar
      client/network: Remove original_request in block request events (#7369) · 96e939f4
      Max Inden authored
      The `original_request` field of each `block_request::Event` variant is
      not used. With that in mind, this commit removes the field.
      96e939f4
    • Cecile Tonglet's avatar
      Add node name to the log lines (#7328) · 8cebbd14
      Cecile Tonglet authored
      * Initial commit
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * CLEANUP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * Add notes to original source code
      
      * CLEANUP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * CLEANUP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * CLEANUP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * Some doc
      
      * Test with trybuild
      
      * Revert "Test with trybuild" (issue with trybuild atm)
      
      This reverts commit 9055ec2206808ba3ddce6e3d87eb358907fa5e42.
      
      https://github.com/dtolnay/trybuild/issues/53
      
      * Apply suggestions
      
      * Rename derive to proc-macro
      
      * Remove "prefix" feature from informant
      
      * Blocking task should use SpawnHandle::spawn_blocking
      
      * Improve doc as suggested
      
      * Fixes
      
      Forked at: 601e2fa1
      
      
      Parent branch: origin/master
      
      * Apply suggestion
      
      * Update client/cli/proc-macro/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * More suggestions
      
      * CLEANUP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * Improve error message
      
      * CLEANUP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * Fix async issue
      
      * CLEANUP
      
      Forked at: 601e2fa1
      Parent branch: origin/master
      
      * CLEANUP
      
      Forked at: 601e2fa1
      
      
      Parent branch: origin/master
      
      * Add test
      
      * fix doc test
      
      * Update client/cli/src/logging.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/basic-authorship/src/basic_authorship.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/basic-authorship/src/basic_authorship.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Apply suggestions
      
      * Suggestions
      
      * Clarify doc
      
      * WIP
      
      Forked at: 601e2fa1
      
      
      Parent branch: origin/master
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      8cebbd14
    • Max Inden's avatar
      client/network: Allow configuring Kademlia's disjoint query paths (#7356) · 4e9256ab
      Max Inden authored
      The Rust libp2p-kad implementation can require iterative queries to use
      disjoint paths for increased resiliency in the presence of potentially
      adversarial nodes.
      
      Allow Substrate users to enable this feature via the
      `--kademlia-disjoint-query-paths` flag.
      4e9256ab