Skip to content
  1. Oct 13, 2022
    • Sergej Sakac's avatar
      pallet-mmr: RPC API and Runtime API work with block numbers (#12345) · 9dd89e7f
      Sergej Sakac authored
      
      
      * pallet-mmr: RPC API works with block_numbers
      
      * fixes
      
      * update rpc
      
      * fmt
      
      * final touches in the rpc
      
      * temporary fix
      
      * fix
      
      * fmt
      
      * docs
      
      * Update lib.rs
      
      * use NumberFor
      
      * validate input
      
      * update runtime
      
      * convert block_number to u64
      
      * small edit
      
      * update runtime api
      
      * test fix
      
      * runtime fix
      
      * update test function
      
      * fmt
      
      * fix nits
      
      * remove block_num_to_leaf_index from runtime api
      
      * Update frame/merkle-mountain-range/src/lib.rs
      
      Co-authored-by: default avatarRobert Hambrock <[email protected]>
      
      * fix tests
      
      * get the code to compile after merge
      
      * get the tests to compile
      
      * fix in tests?
      
      * fix test
      
      * Update frame/merkle-mountain-range/src/tests.rs
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      
      * Update frame/merkle-mountain-range/src/lib.rs
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      
      * Update primitives/merkle-mountain-range/src/lib.rs
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      
      * fix errors & nits
      
      * change block_num_to_leaf_index
      
      * don't make any assumptions
      
      * Update frame/merkle-mountain-range/src/tests.rs
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      
      * Update frame/merkle-mountain-range/src/tests.rs
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      
      * Update frame/merkle-mountain-range/src/tests.rs
      
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      
      * fix
      
      * small fix
      
      * use best_known_block_number
      
      * best_known_block_number instead of leaves_count
      
      * more readable?
      
      * remove warning
      
      * Update frame/merkle-mountain-range/src/lib.rs
      
      Co-authored-by: default avatarRobert Hambrock <[email protected]>
      
      * simplify
      
      * update docs
      
      * nits
      
      * fmt & fix
      
      * merge fixes
      
      * fix
      
      * small fix
      
      * docs & nit fixes
      
      * Nit fixes
      
      * remove leaf_indices_to_block_numbers()
      
      * fmt
      
      Co-authored-by: default avatarRobert Hambrock <[email protected]>
      Co-authored-by: default avatarAdrian Catangiu <[email protected]>
      9dd89e7f
    • Aaro Altonen's avatar
      Introduce mockable `ChainSync` object for testing (#12480) · 09164dbc
      Aaro Altonen authored
      
      
      * Introduce mockable `ChainSync` object for testing
      
      `mockall` allows to mock `ChainSync` and to verify that the calls made
      to `ChaiSync` are firstly executed at all, that they're executed in
      correct order and with correct parameters.
      
      This allows to verify, e.g., that delegating calls directly to
      `ChainSync` from `NetworkService` still calls the correct functions with
      correct arguments even if `Protocol` middleman is removed.
      
      * Add Cargo.lock
      
      * Fix tests
      
      * Update client/network/Cargo.toml
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update Cargo.lock
      
      * Fix clippy and documentation
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: parity-processbot <>
      09164dbc
    • Dmitry Markin's avatar
      Punish peers for duplicate GRANDPA neighbor messages (#12462) · b0b2b679
      Dmitry Markin authored
      
      
      * Decrease peer reputation for duplicate GRANDPA neighbor messages.
      
      * Fix comparison
      
      * Fix update_peer_state() validity condition
      
      * Add negative test
      
      * Rework update_peer_state() validity condition, add tests
      
      * update_peer_state() validity condition: invert comparison
      
      * Split InvalidViewChange and DuplicateNeighborMessage misbehaviors
      
      * Enforce rate-limiting of duplicate GRANDPA neighbor packets
      
      * Update client/finality-grandpa/src/communication/gossip.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Make rolling clock back in a test safer
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      b0b2b679
  2. Oct 12, 2022
  3. Oct 11, 2022
  4. Oct 10, 2022
  5. Oct 09, 2022
  6. Oct 08, 2022
  7. Oct 07, 2022
  8. Oct 06, 2022
    • Sam Johnson's avatar
      macro stubs for all pallet:: macros to improve documentation visibility and... · af58e8e8
      Sam Johnson authored
      
      macro stubs for all pallet:: macros to improve documentation visibility and discovery + revamp of pallet macro documentation (#12334)
      
      * proof of concept working for pallet::whitelist_storage
      
      * fix comments
      
      * pallet macros docs rewrite WIP
      
      * fix issue with cargo fmt cobbling links
      
      * tweak capitalization
      
      * fix docs for storage_version
      
      * fix docs for pallet::hooks
      
      * fix several comments
      
      * fix invalid link
      
      * fix wrapping and add missing links for pallet::hooks docs
      
      * run rewrap on all text blocks in frame_support::pallet docs
      
      * cargo fmt
      
      * fix up pallet::call_index docs
      
      * fix docs for pallet::extra_constants
      
      * fix docs for pallet::error
      
      * fix docs for pallet::event
      
      * fix docs for pallet::event
      
      * * fix docs for pallet::storage
      * fix docs for pallet::getter
      * fix docs for pallet::storage_prefix
      * fix docs for pallet::unbounded
      * fix docs for pallet::whitelist_storage
      * fix docs for #[cfg(..)] (for storage items and attributes)
      * fix docs for pallet::storage macro expansion
      
      * fix docs for pallet::type_value
      
      * fix docs for pallet::genesis_config
      
      * fix docs for pallet::genesis_build
      
      * fix docs for pallet::inherent
      
      * fix docs for pallet::validate_unsigned
      
      * fix docs for pallet::origin
      
      * fix docs for general notes on instantiable pallets
      
      * fix docs for example of a non-instantiable pallet
      
      * fix docs for example of an instantiable pallet
      
      * fix docs for upgrade guidelines
      
      * fix docs for upgrade guidelines
      
      * fix docs for upgrade checking and final notes
      
      * fix some examples near the beginning
      
      * extract docs for `pallet::whitelist_storage`
      
      * add docs for pallet_macro_stub
      
      * fix order of pallet::config and pallet::constant
      
      * set up stub for pallet::config
      
      * set up stub for pallet::constant
      
      * fix
      
      * set up stub for pallet::disable_frame_system_supertrait_check
      
      * set up stub for pallet::generate_storage_info
      
      * set up stub for pallet::storage_version
      
      * set up stub for pallet::hooks
      
      * set up stub for pallet::weight
      
      * set up stub for pallet::compact
      
      * set up stub for pallet::call_index
      
      * set up stub for pallet::extra_constants
      
      * set up stub for pallet::error
      
      * set up stub for pallet::event
      
      * set up stub for pallet::generate_deposit
      
      * set up stub for pallet::storage
      
      * set up stub for pallet::getter
      
      * set up stub for pallet::storage_prefix
      
      * set up stub for pallet::unbounded
      
      * set up stub for pallet::type_value
      
      * set up stub for pallet::genesis_config
      
      * set up stub for pallet::genesis_build
      
      * set up stub for pallet::inherent
      
      * set up stub for pallet::validate_unsigned
      
      * set up stub for pallet::origin
      
      * fix comment
      
      * cargo fmt
      
      * tweak error message
      
      * Update frame/support/procedural/src/lib.rs
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * Update frame/support/procedural/src/lib.rs
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * switch order of derives
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * tweak wording
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * add more context info about `MAX_MODULE_ERROR_ENCODED_SIZE`
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * tweak wording about where clause
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * clarify wording about system/events key
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * use "The Event enum" instead of "item"
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * fix bad wording
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * use enum instead of type
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * expect => expects
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * add additional note about storage prefix
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * clearer note about GenesisConfig
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * Use "The impl" instead of "The item"
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * add note and link to tight-coupling docs
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * cargo fmt
      
      * remove spaces around parenthesis
      
      * fix missing text for pallet::config
      
      * fix issue with pallet::constant intro
      
      * fix wording about codec index
      
      * fix pallet::error wording
      
      * fix comment about 1 byte => 256 errors
      
      * fix where clause comment
      
      * fix comment about where pallet events are stored
      
      * rewrap some text
      
      * fix pallet::storage docs
      
      * fix pallet::storage_prefix docs
      
      * tweak docs for pallet::genesis_build
      
      * tweak docs for pallet::config
      
      * specify that pallet::event must be present if pallet::config is present
      
      * add note about why we would want to bypass the supertrait check
      
      * mention that pallet::generate_store attribute is only valid on pallet struct
      
      * add note about adding new calls to the end to maintain existing order
      
      * add note about pallet::type_value and pallet::storage
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * add note about using pallet::type_value alongside pallet::storage
      
      * include warning about modifying disaptchables on other pallet::call_index docs page
      
      * fix incorrect comment
      
      * add much more information for pallet::inherent
      
      * move pallet::pallet macro expansion notes back to their rightful place
      
      * re-run CI
      
      * fix macro expansion appearing in wrong place for pallet::pallet
      
      * replicate pallet::pallet docs on the pallet::pallet macro stub
      
      * force CI re-run
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      Co-authored-by: default avatarSquirrel <[email protected]>
      Co-authored-by: parity-processbot <>
      af58e8e8
    • Sergej Sakac's avatar
      Maximum value for `MultiplierUpdate` (#12282) · 4bf70977
      Sergej Sakac authored
      
      
      * Maximum value for MultiplierUpdate
      
      * Update frame/transaction-payment/src/lib.rs
      
      Co-authored-by: default avatarStephen Shelton <[email protected]>
      
      * Update lib.rs
      
      * return constant
      
      * fix in runtime
      
      * Update frame/transaction-payment/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update frame/transaction-payment/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * fixes
      
      * remove unused import
      
      * Update lib.rs
      
      * more readable
      
      * fix
      
      * fix nits
      
      Co-authored-by: default avatarStephen Shelton <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      4bf70977
    • Adrian Catangiu's avatar
      Add pluggable BEEFY payload constructors (#12428) · b91d2dfd
      Adrian Catangiu authored
      * primitives/beefy: move Payload to its own file
      
      * primitives/beefy: add Payload tests
      
      * primitives/beefy: add MmrRootProvider as custom BEEFY payload provider
      
      * client/beefy: use generic BEEFY 'PayloadProvider'
      
      * primitives/beefy: rename Payload::new to Payload::from_single_entry for clarity
      
      * fix visibility
      
      * fix cargo doc
      b91d2dfd
    • Alexander Theißen's avatar
  9. Oct 05, 2022
  10. Oct 04, 2022