Skip to content
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
5db2223
Add `TransactionStorageApi` definition
bkontur Dec 15, 2025
8a53165
Add pub getter `storage_period` to transaction-storage pallet
bkontur Dec 15, 2025
3c1e637
Add TransactionStorageApi to the kithchensink
bkontur Dec 16, 2025
26214fe
Move `DEFAULT_STORAGE_PERIOD`
bkontur Dec 16, 2025
e4bb2e5
Call runtime API to get the storage_period for inherent data provider…
bkontur Dec 16, 2025
432f85b
Licence
bkontur Dec 16, 2025
7c5931c
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] Dec 16, 2025
5dc9364
Update substrate/frame/transaction-storage/src/lib.rs
bkontur Dec 16, 2025
14cf3f1
Update prdoc/pr_10656.prdoc
bkontur Dec 16, 2025
6f32290
Update from github-actions[bot] running command 'fmt'
github-actions[bot] Dec 16, 2025
1806e30
Update prdoc/pr_10656.prdoc
bkontur Dec 16, 2025
27c42ba
Fix indentation in the prdoc
EgorPopelyaev Dec 16, 2025
58113e4
Fix CI?
bkontur Dec 16, 2025
3e2b9ea
Update prdoc/pr_10656.prdoc
bkontur Dec 16, 2025
041d5e3
Merge branch 'master' into bko-tx-pallet-storage-period
bkontur Dec 16, 2025
d0e55e8
Removed transaction_storage_runtime_api_call_works
bkontur Dec 16, 2025
b725081
Use directly runtime API, no need for "hacky" workaround `client.call…
bkontur Dec 17, 2025
9f77401
Rename `StoragePeriod` to `RetentionPeriod`
bkontur Dec 17, 2025
863492f
Update from github-actions[bot] running command 'fmt'
github-actions[bot] Dec 17, 2025
c92a3fd
Update prdoc/pr_10656.prdoc
bkontur Dec 17, 2025
2773a62
Merge branch 'master' into bko-tx-pallet-storage-period
bkontur Dec 19, 2025
9e6ef0a
Merge branch 'master' into bko-tx-pallet-storage-period
bkontur Dec 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions prdoc/pr_10656.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
title: '[pallet-transaction-storage] Configurable RetentionPeriod'
doc:
- audience: [Node Dev, Runtime Dev]
description: |-
This PR refactors `pallet-transaction-storage` and `sp-transaction-storage-proof` (the `new_data_provider` inherent provider), both of which rely on a hard-coded `DEFAULT_RETENTION_PERIOD`. This PR:
- adds a new configurable argument `retention_period` to the `new_data_provider`
- introduces the `TransactionStorageApi::retention_period` runtime API, which the runtime can specify arbitrary
- provides an example of using `new_data_provider`, with the node client calling the runtime API when constructing inherent provider data
crates:
- name: sp-transaction-storage-proof
bump: major
- name: pallet-transaction-storage
bump: major
Loading