Skip to content
  1. Feb 06, 2023
  2. Feb 03, 2023
  3. Feb 02, 2023
  4. Jan 29, 2023
  5. Jan 28, 2023
  6. Jan 27, 2023
  7. Jan 26, 2023
  8. Jan 25, 2023
  9. Jan 24, 2023
  10. Jan 23, 2023
  11. Jan 21, 2023
  12. Jan 20, 2023
    • Sergej Sakac's avatar
      Warn validators with slow hardware (#12620) · 5ccd9bfc
      Sergej Sakac authored
      
      
      * move Metric
      
      * run hardware bench if validiator flag is being used
      
      * fix rustdoc & update node-template
      
      * fix
      
      * unused improt
      
      * warn
      
      * move Requirement
      
      * bench_result
      
      * ensure_requirements
      
      * make the code compile
      
      * check if authority
      
      * Update client/sysinfo/src/sysinfo.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * nit fixes
      
      * warning signs
      
      * Update client/sysinfo/src/sysinfo.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      5ccd9bfc
    • Bastian Köcher's avatar
      sc-network: Ensure private addresses are disabled if requested (#13185) · b98138d1
      Bastian Köcher authored
      When running with `--no-private-ipv4` the node should not trying to connect to any private ip
      addresses. With the switch to libp2p this behavior was broken. Part of this version upgrade was the
      following pr: https://github.com/libp2p/rust-libp2p/pull/2995. This pr changed the default cache
      size of `libp2p-identity` from `0` aka disabled to `100`. Together with our implementation that was
      calling into `identity` to request addresses for a given peer. Before the switch to libp2p 0.50.0
      this was returning zero addresses, but now with the cache enabled it started to return addresses.
      This pr fixes this by only letting discovery return addresses for a peer. It also ensures that we
      filter private addresses if requested. The cache is also disabled to restore the previous caching
      behavior, but it will actually not be called anymore.
      b98138d1
    • Marcin S.'s avatar
      Fix potential huge allocation as a result of `validate_block` output (#13183) · e8288005
      Marcin S. authored
      
      
      * Fix potential huge allocation as a result of `validate_block` output
      
      * Address review comments; add more tests
      
      * Update client/executor/wasmtime/src/runtime.rs
      
      * Remove unnecessary comments
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      e8288005
  13. Jan 19, 2023
    • Michal Kucharczyk's avatar
      txpool: LOG_TARGET const added (#13180) · 57b1de3f
      Michal Kucharczyk authored
      
      
      * txpool: LOG_TARGET const added
      
      part of: #12873
      
      * LOG_TARGET added to tests mod
      
      * txpool::api for api
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: command-bot <>
      57b1de3f
    • Gavin Wood's avatar
      Make DispatchError impl MEL (#13169) · 2d7fa18e
      Gavin Wood authored
      
      
      * Make DispatchError impl MEL
      
      * Upgrade SCALE codec to support `codec(skip)` for MEL
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      2d7fa18e
    • Sebastian Kunert's avatar
      Notification-based block pinning (#13157) · 9be65570
      Sebastian Kunert authored
      
      
      * Worker
      
      * Reorganize and unpin onnotification drop
      
      * Pin in state-db, pass block number
      
      * Pin blocks in blockchain db
      
      * Switch to reference counted LRU
      
      * Disable pinning when we keep all blocks
      
      * Fix pinning hint for state-db
      
      * Remove pinning from backend layer
      
      * Improve readability
      
      * Add justifications to test
      
      * Fix justification behaviour
      
      * Remove debug prints
      
      * Convert channels to tracing_unbounded
      
      * Add comments to the test
      
      * Documentation and Cleanup
      
      * Move task start to client
      
      * Simplify cache
      
      * Improve test, remove unwanted log
      
      * Add tracing logs, remove expect for block number
      
      * Cleanup
      
      * Add conversion method for unpin handle to Finalitynotification
      
      * Revert unwanted changes
      
      * Improve naming
      
      * Make clippy happy
      
      * Fix docs
      
      Co-authored-by: default avatarMichal Kucharczyk <[email protected]>
      
      * Use `NumberFor` instead of u64 in API
      
      * Hand over weak reference to unpin worker task
      
      * Unwanted
      
      * &Hash -> Hash
      
      * Remove number from interface, rename `_unpin_handle`, LOG_TARGET
      
      * Move RwLock one layer up
      
      * Apply code style suggestions
      
      * Improve comments
      
      * Replace lru crate by schnellru
      
      * Only insert values for pinned items + better docs
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Improve comments, log target and test
      
      Co-authored-by: default avatarMichal Kucharczyk <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      9be65570
  14. Jan 18, 2023
  15. Jan 17, 2023
    • Davide Galassi's avatar
      Refactory of `next_slot` method (#13155) · 09ddb373
      Davide Galassi authored
      Refactory of `next_slot` method
      
      * Prevents slot worker exit if inherent data provider creation fails
      * Failure is not possible anymore
      * Fix potential failure after warp-sync where block headers of not already downloaded blocks are used by the inherent data provider
      09ddb373
    • Anton's avatar
      [client/network] Add support for `/wss` addresses (#13152) · 9f6ac763
      Anton authored
      * join dns with another instance of WS transport
      
      Secure Websocket transport needs unresolved addresses, so we join DNS transport with
      yet another instance of Websocket transport.
      
      Closes #12024
      
      * WSS transport itself need to wrap DNS transport
      
      in order to resolve addresses before passing them down to TCP transport
      
      Refs https://github.com/libp2p/rust-libp2p/issues/3330
      
      * reverse order
      
      * simplify code: remove WS from WSS inner DNS transport
      
      * remove the 2nd instance of WS transport
      9f6ac763
  16. Jan 16, 2023
    • Michal Kucharczyk's avatar
      txpool: don't maintain the pool during major sync (#13004) · 5134dabb
      Michal Kucharczyk authored
      
      
      * txpool: don't maintain the pool during major sync
      
      Fix shall prevent from wasting the CPU during the major sync. No actions
      are actually required in transaction pool during the major sync.
      
      Fixes: #12903
      
      * passing sync_oracle to maintain method
      
      * fixed: builder, txpool tests
      
      * do not maintain tx-pool if node gone out of sync
      
      * EnactmentAction: all logic moved to EnactmentState
      
      Tests to be done.
      
      * maintain guard logic moved directly to MaintainedTransactionPool
      
      * minor fixes
      
      * EnactmentAction: all logic moved to EnactmentState (again)
      
      * SyncOracle fixes here and there
      
      * Update client/transaction-pool/src/enactment_state.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/transaction-pool/src/enactment_state.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * sync_oracle removed
      
      * spelling + fmt + doc
      
      * Review suggestions applied
      
      * log::info -> debug
      
      * Update client/transaction-pool/src/enactment_state.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      5134dabb
  17. Jan 13, 2023
  18. Jan 12, 2023
  19. Jan 09, 2023
  20. Jan 06, 2023