Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
903cd4e8
Commit
903cd4e8
authored
4 years ago
by
Bastian Köcher
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Clarify some host interfaces (#6626)
parent
dea99ca6
Branches
gh-readonly-queue/master/pr-5765-087ea0352ec2a3a2f0dc5254fe0455ba429bc25f
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/primitives/io/src/lib.rs
+5
-4
5 additions, 4 deletions
substrate/primitives/io/src/lib.rs
with
5 additions
and
4 deletions
substrate/primitives/io/src/lib.rs
+
5
−
4
View file @
903cd4e8
...
...
@@ -134,7 +134,7 @@ pub trait Storage {
///
/// The hashing algorithm is defined by the `Block`.
///
/// Returns the SCALE encoded hash.
/// Returns
a `Vec<u8>` that holds
the SCALE encoded hash.
fn
root
(
&
mut
self
)
->
Vec
<
u8
>
{
self
.storage_root
()
}
...
...
@@ -144,7 +144,7 @@ pub trait Storage {
///
/// The hashing algorithm is defined by the `Block`.
///
/// Returns
an
`Some(
_
)` which holds the SCALE encoded hash or `None` when
/// Returns `Some(
Vec<u8>
)` which holds the SCALE encoded hash or `None` when
/// changes trie is disabled.
fn
changes_root
(
&
mut
self
,
parent_hash
:
&
[
u8
])
->
Option
<
Vec
<
u8
>>
{
self
.storage_changes_root
(
parent_hash
)
...
...
@@ -306,7 +306,7 @@ pub trait DefaultChildStorage {
/// "Commit" all existing operations and compute the resulting child storage root.
/// The hashing algorithm is defined by the `Block`.
///
/// Returns the SCALE encoded hash.
/// Returns
a `Vec<u8>` that holds
the SCALE encoded hash.
fn
root
(
&
mut
self
,
storage_key
:
&
[
u8
],
...
...
@@ -379,7 +379,8 @@ pub trait Misc {
/// Extract the runtime version of the given wasm blob by calling `Core_version`.
///
/// Returns the SCALE encoded runtime version and `None` if the call failed.
/// Returns `None` if calling the function failed for any reason or `Some(Vec<u8>)` where
/// the `Vec<u8>` holds the SCALE encoded runtime version.
///
/// # Performance
///
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment