Skip to content
  1. Sep 25, 2022
  2. Sep 23, 2022
    • Davide Galassi's avatar
      Independence of Slot-based algorithms from system Timestamp (#12224) · bf97f2a7
      Davide Galassi authored
      
      
      * Remove timestamp from SlotInfo
      
      * Expose as millis instead of secs
      
      * Nits
      
      * Fix test after field removal
      
      * Yet another test fix
      
      * On the fly timestamp computation
      
      * Removed slot timestamp from logs
      
      * Removed reference to timestamp from slots subsystem
      
      * Slot based algorithm tests do not require timstamp inherent anymore
      
      * Remove junk files
      
      * Further tests cleanup
      
      * Trigger pipeline
      
      * Apply code suggestions
      
      * Trigger pipeline
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      bf97f2a7
  3. Sep 22, 2022
  4. Sep 21, 2022
  5. Sep 20, 2022
  6. Sep 16, 2022
    • Arkadiy Paronyan's avatar
      Fix warp sync (#12281) · 86b122d7
      Arkadiy Paronyan authored
      86b122d7
    • Adrian Catangiu's avatar
      client/beefy: fix voter initialization (#12274) · d9a4d835
      Adrian Catangiu authored
      
      
      Fix corner case where voter gets a single burst of finality
      notifications just when it starts.
      
      The notification stream was consumed by "wait_for_pallet" logic,
      then main loop would subscribe to finality notifications, but by that
      time some notifications might've been lost.
      
      Fix this by subscribing the main loop to notifications before waiting
      for pallet to become available. Share the same stream with the main loop
      so that notifications for blocks before pallet available are ignored,
      while _all_ notifications after pallet available are processed.
      
      Add regression test for this.
      
      Signed-off-by: default avataracatangiu <[email protected]>
      d9a4d835
  7. Sep 15, 2022
  8. Sep 14, 2022
  9. Sep 13, 2022
  10. Sep 12, 2022
  11. Sep 08, 2022
  12. Sep 05, 2022
    • Davide Galassi's avatar
      Fetch Babe configuration from runtime state (#11760) · 83aec6f9
      Davide Galassi authored
      * Fetch babe config data from runtime state
      
      * Some renaming
      
      * More renaming
      
      * Final nits
      
      * Fix tests and benches
      
      * Rename  to  in BabeConfiguration
      
      * Remove duplicate babe parameter description
      
      Already specified over the 'PRIMARY_PROBABILITY' constant value
      
      * trigger pipeline
      
      * trigger pipeline
      83aec6f9
    • Nazar Mokrynskyi's avatar
      Enforce blocks response limit (#12146) · efa04ed7
      Nazar Mokrynskyi authored
      efa04ed7
    • Adrian Catangiu's avatar
      beefy: initialize voter from genesis and fix initial sync (#11959) · 84acfd5f
      Adrian Catangiu authored
      
      
      * client/beefy: use backend instead of client where possible
      
      * client/beefy: initialize voter from genesis
      
      Now that we have justifications import, we can drop the "lean beefy"
      behaviour and start building justifications chain from Genesis with
      containing all past sessions' mandatory blocks justifications.
      
      * client/beefy: walk finality tree_route to catch session changes
      
      * client/beefy: fix block import
      
      During initial block import blocks are not finalized, so trying to
      validate and append justifications within block import fails (for
      initial network sync imported blocks).
      
      Changes:
      
      - Move justification validation to _after_ `inner.block_import()`,
        so block is imported in backend and runtime api can be called to
        get the BEEFY authorities for said block.
      - Move append-to-backend for imported BEEFY justification to voter,
        because it already has the required logic to BEEFY-finalize blocks
        only after GRANDPA finalized them.
      - Mark voting rounds as concluded when finalizing through
        imported justifications as well as when finalizing through voting.
      
      * client/beefy: valid justifications are one per block number
      
      The only way we'd get _different_ _validated_ justifications for same
      block number is if authorities are double voting, which will be handled
      later.
      
      * client/beefy: process incoming justifs during major sync
      
      * client/beefy: correct voter initialization
      
      BEEFY voter should resume voting from either:
        - last BEEFY finalized block,
        - session start,
      whichever is closest to head.
      
      * client/beefy: test voter initialization
      
      * client/beefy: impl review suggestions
      
      Signed-off-by: default avataracatangiu <[email protected]>
      84acfd5f
  13. Sep 03, 2022
    • Dmitry Markin's avatar
      Use custom type for ProtocolName (#12172) · 24d09fe8
      Dmitry Markin authored
      * Add ProtocolName custom type
      
      * Use new ProtocolName in sc_network_common
      
      * Use new ProtocolName in sc_network
      
      * Use new ProtocolName for BEEFY and GRANDPA
      
      * Use new ProtocolName for notifications
      
      * Use new ProtocolName in sc_network (part 2)
      
      * Use new ProtocolName in sc_network_gossip
      
      * Use new ProtocolName in sc_offchain
      
      * Remove unused imports
      
      * Some more fixes
      
      * Add tests
      
      * Fix minor import issues
      
      * Re-export ProtocolName in sc_network
      
      * Revert "Re-export ProtocolName in sc_network"
      
      This reverts commit 8d8ff71927e7750757f29c9bbd88dc0ba181d214.
      
      * Re-export ProtocolName in sc_network
      
      * Remove dependency on sc-network-common from beefy-gadget
      24d09fe8
  14. Sep 02, 2022
    • Bastian Köcher's avatar
      Do not drop the `task_manager` for benchmarking stuff (#12147) · 90714449
      Bastian Köcher authored
      We can not drop the `task_manager` for benchmarking stuff, because otherwise stuff that may needs
      this feature (like background signature verification) will fail. Besides the base path setup is
      moved to `SharedParams` directly. Meaning any call to `base_path` will now directly return a tmp
      path when `--dev` is given.
      90714449
  15. Sep 01, 2022
  16. Aug 31, 2022
    • Liu-Cheng Xu's avatar
      Only log when the transaction is actually to be propagated (#12158) · 9bbf8efd
      Liu-Cheng Xu authored
      The logging before is confusing as it says Propagating but it's not in fact when gossip_enabled is
      false. Now it's also consistent with `propagate_transactions` below.
      9bbf8efd
    • Sebastian Kunert's avatar
      Simplify trait bounds in network to prepare for collator-rpc (#12082) · 800bc5cd
      Sebastian Kunert authored
      
      
      * Hack towards PoC
      
      * Abstract away runtime requirement
      
      * blockchainevents
      
      * Remove bitswap
      
      * Remove unused sync more
      
      * Remove unused features in network
      
      * Re-enable bitswap change
      
      * Remove `Chain` trait bound
      
      * Reimplement blockchain-rpc-events
      
      * Move network to cumulus
      
      * Make AuthorityDiscovery async
      
      * Remove `ProofProvider` requirement from network behaviour
      
      * Extract bitswap
      
      * Adjustments after merge
      
      * Remove HeaderMetadata trait from network
      
      * Introduce NetworkHeaderBackend
      
      * Add comments
      
      * Improve comments
      
      * Move NetworkHeaderBackend to new module
      
      * Improve naming, remove redundand send + sync
      
      * Clean up generics
      
      * Fix CI
      
      * Improve comment and readability
      
      * Remove NetworkHeaderBackend
      
      * Fix Cargo.lock
      
      Co-authored-by: default avatarSebastian Kunert <[email protected]>
      800bc5cd
  17. Aug 29, 2022
  18. Aug 26, 2022
  19. Aug 25, 2022
  20. Aug 23, 2022
  21. Aug 22, 2022
    • Nazar Mokrynskyi's avatar
      Network sync refactoring (part 7) (#12006) · b20f83c1
      Nazar Mokrynskyi authored
      * Move `MultiaddrWithPeerId` and related parsing functions into `sc-network-common`, remove dependency on `sc-network` from `sc-chain-spec`
      
      * Remove dependency on `sc-network` from `sc-offchain`
      
      * Remove dependency on `sc-network` from `sc-network-gossip`
      b20f83c1