Skip to content
Snippets Groups Projects
  • Andrei Sandu's avatar
    glutton: also increase parachain block length (#4728) · 1dc68de8
    Andrei Sandu authored
    
    Glutton currently is useful mostly for stress testing relay chain
    validators. It is unusable for testing the collator networking and block
    announcement and import scenarios. This PR resolves that by improving
    glutton pallet to also buff up the blocks, up to the runtime configured
    `BlockLength`.
    
    ### How it works
    Includes an additional inherent in each parachain block. The `garbage`
    argument passed to the inherent is filled with trash data. It's size is
    computed by applying the newly introduced `block_length` percentage to
    the maximum block length for mandatory dispatch class. After
    https://github.com/paritytech/polkadot-sdk/pull/4765 is merged, the
    length of inherent extrinsic will be added to the total block proof
    size.
    
    The remaining weight is burnt in `on_idle` as configured by the
    `storage` percentage parameter.
    
    
    TODO:
    - [x] PRDoc
    - [x] Readme update
    - [x] Add tests
    
    ---------
    
    Signed-off-by: default avatarAndrei Sandu <andrei-mihail@parity.io>
    Unverified
    1dc68de8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.