-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Bulletin as parachain missing features #10662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
0c61581
Added host function `TransactionIndex` for Bulletin parachain support…
bkontur b5d4f88
Add noop storage_index_transaction/storage_renew_transaction_index
bkontur 65b54b7
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] e186010
Update prdoc/pr_10370.prdoc
bkontur 7cdfdab
Merge branch 'master' into bko-bulletin-para-support
bkontur 65f8ca1
Merge branch 'master' into bko-bulletin-para-support
bkontur b595296
Merge branch 'master' into bko-bulletin-para-support
bkontur a87b4d6
Merge branch 'master' into bko-bulletin-para-support
bkontur e01b7b9
Merge remote-tracking branch 'origin/master' into bko-bulletin-para-s…
bkontur 7665768
Move NO-OP transaction index host function to the correct place
bkontur 58e4908
Update prdoc/pr_10370.prdoc
bkontur 69e5abd
Merge branch 'master' into bko-bulletin-para-support
bkontur 376af21
Merge remote-tracking branch 'origin/master' into bko-bulletin-para-s…
bkontur 0f4c666
Put it behind a feature gate
bkontur 4bdf004
Update cumulus/pallets/parachain-system/Cargo.toml
bkontur 8ad87e0
Fix unused
bkontur 5ccde08
Merge remote-tracking branch 'origin/bko-bulletin-para-support' into …
bkontur 5b4c819
Merge branch 'master' into bko-bulletin-para-support
bkontur 6ea1a29
sp-inherents: impl CreateInherentDataProvider for Vec<T>
iulianbarbu 31dfc85
cumulus(wip): flag guarded enablement of tx storage idp
iulianbarbu aea846e
cumulus: fix polkadot-omni-node-lib compilation
iulianbarbu 00b63c7
Merge branch 'master' into ib-add-tx-storage-inherent
iulianbarbu 6697edc
Merge branch 'master' into bko-bulletin-para-support
bkontur e1af1dc
add prdoc
iulianbarbu bc26436
Update cumulus/polkadot-omni-node/lib/src/common/spec.rs
iulianbarbu 38fea5e
fix prdoc
iulianbarbu c3ac2ae
Merge branch 'master' into bko-bulletin-para-support
bkontur 8a64394
Merge branch 'master' into bko-bulletin-para-support
bkontur 8339f99
Update cumulus/polkadot-omni-node/lib/src/common/spec.rs
iulianbarbu 1ff66b6
polkadot-omni-node-lib: remove the extra ipfs_server flag
iulianbarbu d61002a
Merge branch 'master' into ib-add-tx-storage-inherent
iulianbarbu 5db2223
Add `TransactionStorageApi` definition
bkontur 8a53165
Add pub getter `storage_period` to transaction-storage pallet
bkontur 3c1e637
Add TransactionStorageApi to the kithchensink
bkontur 26214fe
Move `DEFAULT_STORAGE_PERIOD`
bkontur e4bb2e5
Call runtime API to get the storage_period for inherent data provider…
bkontur 432f85b
Licence
bkontur 7c5931c
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] 5dc9364
Update substrate/frame/transaction-storage/src/lib.rs
bkontur 14cf3f1
Update prdoc/pr_10656.prdoc
bkontur 8511105
Merge branch 'master' into ib-add-tx-storage-inherent
bkontur 4c6a7b1
Merge branch 'master' into bko-bulletin-para-support
bkontur 6f32290
Update from github-actions[bot] running command 'fmt'
github-actions[bot] 1806e30
Update prdoc/pr_10656.prdoc
bkontur 27c42ba
Fix indentation in the prdoc
EgorPopelyaev 58113e4
Fix CI?
bkontur 3e2b9ea
Update prdoc/pr_10656.prdoc
bkontur 25868a0
Merge branch 'master' into ib-add-tx-storage-inherent
bkontur 1de55ee
Merge branch 'master' into bko-bulletin-para-support
bkontur 041d5e3
Merge branch 'master' into bko-tx-pallet-storage-period
bkontur 3df454a
Merge remote-tracking branch 'origin/bko-bulletin-para-support' into …
bkontur 07a3095
Merge remote-tracking branch 'iulianbarbu/ib-add-tx-storage-inherent'…
bkontur 5e57aec
Fix for polkadot-omni-node-lib with `storage_period`
bkontur 5dec290
Update cumulus/polkadot-omni-node/lib/src/common/spec.rs
bkontur ad89400
Update cumulus/polkadot-omni-node/lib/src/common/spec.rs
bkontur fc00032
Merge remote-tracking branch 'iulianbarbu/ib-add-tx-storage-inherent'…
bkontur 4ac1ac2
Merge three partial prdocs from sub-PRs to the one
bkontur be2493d
Fix import
bkontur c7cb58f
Update spec.rs - fix import
bkontur d67fbf7
Add more docs for `transaction-index` feature
bkontur 57a8b1b
Merge remote-tracking branch 'iulianbarbu/ib-add-tx-storage-inherent'…
bkontur d0e55e8
Removed transaction_storage_runtime_api_call_works
bkontur ed13621
Merge remote-tracking branch 'origin/bko-tx-pallet-storage-period' in…
bkontur 4315eef
Fix prdoc
EgorPopelyaev ae24e58
Update cumulus/polkadot-omni-node/lib/src/cli.rs
bkontur f28a2e2
Merge remote-tracking branch 'iulianbarbu/ib-add-tx-storage-inherent'…
bkontur b725081
Use directly runtime API, no need for "hacky" workaround `client.call…
bkontur 9f77401
Rename `StoragePeriod` to `RetentionPeriod`
bkontur f477751
Merge remote-tracking branch 'origin/bko-tx-pallet-storage-period' in…
bkontur 863492f
Update from github-actions[bot] running command 'fmt'
github-actions[bot] d21fcea
Add TransactionStorageApi to fake_runtime_api for omni node
bkontur c92a3fd
Update prdoc/pr_10656.prdoc
bkontur e1943b6
Merge remote-tracking branch 'origin/bko-tx-pallet-storage-period' in…
bkontur 23a5fe2
Merge remote-tracking branch 'origin/master' into bko-bulletin-support
bkontur 9f84180
Merge branch 'master' into bko-bulletin-support
bkontur 811bab2
Merge branch 'master' into bko-bulletin-support
bkontur f62c9da
Merge branch 'master' into bko-bulletin-support
bkontur 1f53391
Merge branch 'master' into bko-bulletin-support
bkontur 2773a62
Merge branch 'master' into bko-tx-pallet-storage-period
bkontur 10d8ad3
Merge remote-tracking branch 'origin/bko-tx-pallet-storage-period' in…
bkontur 3b575f9
Implement my proposed changes
bkchr 559c93e
Update from github-actions[bot] running command 'fmt'
github-actions[bot] ba5164f
Merge branch 'master' into bko-bulletin-support
bkchr 518fc65
Fix tests
bkchr 4561e75
Merge branch 'master' into bko-bulletin-support
bkchr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| title: "Bulletin as parachain missing features" | ||
| doc: | ||
| - audience: Runtime Dev | ||
| description: |- | ||
| 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: | ||
|
|
||
| 1. Add transaction_index::HostFunctions with NO-OP impl to the cumulus ParachainSystem validate_block for polkadot-prepare/execute-worker | ||
| 2. Add custom inherent provider for pallet-transaction-storage to omni node | ||
| 3. Configurable RetentionPeriod feeded to the inherent provider over runtime API | ||
|
|
||
| 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: | ||
| - 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 | ||
| - audience: [ Node Dev, Node Operator ] | ||
| description: | | ||
| * 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. | ||
| * 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. | ||
| crates: | ||
| - name: cumulus-pallet-parachain-system | ||
| bump: patch | ||
| - name: polkadot-omni-node-lib | ||
| bump: major | ||
| - name: sp-inherents | ||
| bump: minor | ||
| - name: sp-transaction-storage-proof | ||
| bump: major | ||
| - name: pallet-transaction-storage | ||
| bump: major |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to be enabled in the omni node.
Also please some docs on what this does would be nice.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs added here: d67fbf7
The omni node or polkadot-parachain already includes
sp_io::SubstrateHostFunctionswhich containstransaction_index::HostFunctions,, so the collator binaries are ok. The polkadot-prepare/execute workers have problem when validating parachain and calling with the executor "validate_block".So, now we need to activate this feature just for the bulletin runtimes with:
Please, see desc here: #10370
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm an idiot 😄