Skip to content
  1. Jan 20, 2022
  2. Jan 19, 2022
  3. Jan 18, 2022
  4. Jan 17, 2022
  5. Jan 15, 2022
    • Nazar Mokrynskyi's avatar
      Minor tweaks suggested by clippy (#10673) · 0bca06a4
      Nazar Mokrynskyi authored
      * Minor tweaks suggested by clippy
      
      * Fix typo caused by last commit
      
      * Apply review suggestions
      0bca06a4
    • Bastian Köcher's avatar
      runtime-interface: Implement `register_only` functions (#10640) · a534274c
      Bastian Köcher authored
      
      
      * runtime-interface: Implement `register_only` functions
      
      The runtime interface supports versioning of functions. Currently, if you add a new function it will
      be used by the runtime automatically. This results in requiring all nodes of a network to upgrade
      before the runtime is upgraded, otherwise they will fail to instantiate the new runtime because of
      missing host functions. This pr introduces `register_only` functions. This can be used when a new
      runtime interface function should be introduced, but the actual usage can be deferred. This means
      that nodes will have the host function for this, but the runtime will still use the old version of
      the function when being compiled for wasm. However, when a runtime is enacted that uses the new host
      function, the "old nodes" will already have the host function and will continue to work.
      
      * Update primitives/runtime-interface/src/lib.rs
      
      Co-authored-by: default avatarcheme <[email protected]>
      
      * Update primitives/runtime-interface/proc-macro/src/utils.rs
      
      Co-authored-by: default avatarcheme <[email protected]>
      
      * FMT
      
      Co-authored-by: default avatarcheme <[email protected]>
      a534274c
  6. Jan 14, 2022
  7. Jan 13, 2022
  8. Jan 12, 2022
  9. Jan 11, 2022
  10. Jan 10, 2022
  11. Jan 09, 2022
  12. Jan 08, 2022
  13. Jan 07, 2022
  14. Jan 06, 2022
    • Adrian Catangiu's avatar
      Add BEEFY `latestFinalized` RPC and deduplicate code between BEEFY and GRANDPA (#10568) · fe8d2bc7
      Adrian Catangiu authored
      
      
      * beefy: add dummy latest_finalized() RPC
      
      * beefy: rpc latest_best_beefy() using shared mem
      
      * beefy: rpc populate latest_best_beefy()
      
      * beefy: rpc handle readiness
      
      * beefy: best block over channel - wip
      
      Not working because channel can't be simply opened and receiver passed
      to `rpc_extensions_builder` because `rpc_extensions_builder` has to be
      `Fn` and not `FnOnce`... and and Receiver side of mpsc can't be cloned
      
      yay!..
      
      * beefy: make notification channels payload-agnostic
      
      * beefy: use notification mechanism instead of custom channel
      
      * beefy: add tracing key to notif channels
      
      * sc-utils: add notification channel - wip
      
      * beefy: use sc-utils generic notification channel
      
      * grandpa: use sc-utils generic notification channel
      
      * fix grumbles
      
      * beefy-rpc: get best block header instead of number
      
      * beefy-rpc: rename to `beefy_getFinalizedHead`
      
      * fix nitpicks
      
      * client-rpc-notifications: move generic Error from struct to fn
      
      * beefy: use header from notification instead of getting from database
      
      * beefy-rpc: get best block hash instead of header
      
      * beefy-rpc: fix and improve latestHead test
      
      * beefy-rpc: bubble up errors from rpc-handler instantiation
      
      * update lockfile
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * fix errors and warnings
      
      * fix nit
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      fe8d2bc7
    • Alexander Theißen's avatar
      contracts: Improve documentation of lazy deletion config (#10582) · 4ca4df64
      Alexander Theißen authored
      
      
      * Improve documentation of lazy deletion config
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarSacha Lansky <[email protected]>
      
      * Update frame/contracts/src/lib.rs
      
      Co-authored-by: default avatarAndrew Jones <[email protected]>
      
      * Improve wording
      
      Co-authored-by: default avatarSacha Lansky <[email protected]>
      Co-authored-by: default avatarAndrew Jones <[email protected]>
      4ca4df64