mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 00:37:57 +00:00
ba0f8de0c7
This PR adds a check that `max_timeslices > 0` and errors if not. It also adds a test for this behaviour and cleans up some misleading docs.
17 lines
660 B
Plaintext
17 lines
660 B
Plaintext
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
|
|
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json
|
|
|
|
title: "[pallet-broker] Fix claim revenue behaviour for zero timeslices"
|
|
|
|
doc:
|
|
- audience: Runtime Dev
|
|
description: |
|
|
Add a check in the `claim_revenue` broker call to ensure that max_timeslices > 0 and errors if
|
|
not. This mitigates an issue where an attacker could call claim_revenue for an existing region
|
|
that is owed a revenue, with max_timeslices set to 0 for free indefinitely, which would
|
|
represent an unbounded spam attack.
|
|
|
|
crates:
|
|
- name: pallet-broker
|
|
bump: patch
|