Skip to content
  1. Aug 06, 2020
  2. Aug 05, 2020
  3. Aug 04, 2020
  4. Aug 03, 2020
  5. Jul 31, 2020
    • Pierre Krieger's avatar
      Don't close inbound notifications substreams immediately (#6781) · c32a3baa
      Pierre Krieger authored
      * Don't close inbound notifications substreams immediately
      
      * Fix not closing in return to node A closing
      c32a3baa
    • Bastian Köcher's avatar
      Order delta before calculating the storage root (#6780) · 64543a31
      Bastian Köcher authored
      We need to order the delta before calculating the storage root, because
      the order is important if the storage root is calculated using a storage
      proof. The problem is arises when the delta is different than at the
      time the storage root was recorded, because we may require a different
      node that is not part of the proof and so, the storage root can not be
      calculated. The problem is solved by always order the delta to use the
      same order when calculating the storage root while recording the
      stroage proof and when calculating the storage root using
      the storage proof.
      
      To prevent this bug in future again, a regression test is added.
      
      Fixes: https://github.com/paritytech/cumulus/issues/146
      64543a31
    • Wei Tang's avatar
      Allow blacklisting blocks from being finalized again after block revert (#6301) · 9ae3a1ce
      Wei Tang authored
      * Allow blacklisting blocks from being finalized again after block revert
      
      * Use BlockRules for storing unfinalized and add have_state_at in revert
      
      * Move finalization_check in finalize_block upward
      
      * Directly mark finalization blacklist as badblocks
      
      * Remove obselete comment
      9ae3a1ce
    • thiolliere's avatar
      Fix link (#6775) · 1ec0ba86
      thiolliere authored
      1ec0ba86
  6. Jul 30, 2020
  7. Jul 29, 2020
    • Max Inden's avatar
      client/network: Add peers to DHT only if protocols match (#6549) · 075b2d78
      Max Inden authored
      
      
      * client/network/src/discovery: Adjust to Kademlia  API changes
      
      * client/network: Add peers to DHT only if protocols match
      
      With https://github.com/libp2p/rust-libp2p/pull/1628 rust-libp2p allows
      manually controlling which peers are inserted into the routing table.
      Instead of adding each peer to the routing table automatically, insert
      them only if they support the local nodes protocol id (e.g. `dot`)
      retrieved via the `identify` behaviour.
      
      For now this works around
      https://github.com/libp2p/rust-libp2p/issues/1611. In the future one
      might add more requirements. For example one might try to exclude
      light-clients.
      
      * Cargo.toml: Remove crates.io patch for libp2p
      
      * client/network/src/behaviour: Adjust to PeerInfo name change
      
      * client/network/src/discovery: Rework Kademlia event matching
      
      * client/network/discovery: Add trace on adding peer to DHT
      
      * client/network/discovery: Retrieve protocol name from kad behaviour
      
      * client/network/discovery: Fix formatting
      
      * client/network: Change DiscoveryBehaviour::add_self_reported signature
      
      * client/network: Document manual insertion strategy
      
      * client/network/discovery: Remove TODO for ignoring DHT address
      
      Co-authored-by: default avatarPierre Krieger <[email protected]>
      075b2d78