You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Relates to:
paritytech/polkadot-bulletin-chain#74
This PR adds the required support and features for running Bulletin as a
parachain. It is a top-level PR that merges three partial features/PRs,
which can also be reviewed/merged separately:
1. Add `transaction_index::HostFunctions` with NO-OP impl to the cumulus
ParachainSystem `validate_block` for polkadot-prepare/execute-worker -
#10370
2. Add custom inherent provider for pallet-transaction-storage to omni
node - #10494
3. Configurable StoragePeriod feeded to the inherent provider over
runtime API - #10656
---------
Signed-off-by: Iulian Barbu <[email protected]>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Iulian Barbu <[email protected]>
Co-authored-by: Iulian Barbu <[email protected]>
Co-authored-by: EgorPopelyaev <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
// Some additional customization in relation to starting the node as an ipfs server.
339
+
if parachain_config.network.idle_connection_timeout < IPFS_WORKAROUND_TIMEOUT &&
340
+
parachain_config.network.ipfs_server
341
+
{
342
+
debug!("Overriding `config.network.idle_connection_timeout` to allow long-lived connections with IPFS nodes. The old value: {:?} is replaced by: {:?}.", parachain_config.network.idle_connection_timeout,IPFS_WORKAROUND_TIMEOUT);
This PR adds the required support and features for running Bulletin as a parachain. It is a top-level PR that merges three partial features:
6
+
7
+
1. Add transaction_index::HostFunctions with NO-OP impl to the cumulus ParachainSystem validate_block for polkadot-prepare/execute-worker
8
+
2. Add custom inherent provider for pallet-transaction-storage to omni node
9
+
3. Configurable RetentionPeriod feeded to the inherent provider over runtime API
10
+
11
+
This PR also 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:
12
+
- adds a new configurable argument `retention_period` to the `new_data_provider`
13
+
- introduces the `TransactionStorageApi::retention_period` runtime API, which the runtime can specify arbitrary
14
+
- provides an example of using `new_data_provider`, with the node client calling the runtime API when constructing inherent provider data
15
+
- audience: [ Node Dev, Node Operator ]
16
+
description: |
17
+
* Node developers/operators could enable the transaction storage inherent data provider setup by using --enable-tx-storage-idp flag. This is especially useful in the context of bulletin chain.
18
+
* Node developers will set up the network `idle_connection_timeout` to 1h when using `--ipfs-server` flag, again, useful in the context of bulletin chain.
0 commit comments