Files
pezkuwi-subxt/prdoc/pr_3997.prdoc
T
Dónal Murray ba0f8de0c7 [pallet-broker] Fix claim revenue behaviour for zero timeslices (#3997)
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.
2024-04-05 13:18:48 +00:00

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