This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Optional storage entries #75
Merged
Merged
Changes from 15 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
acab9a3
Block builder (substrate)
gavofyork 9acd3f9
Fix wasm build
gavofyork ca5900f
Bulid on any block
gavofyork d11cfe1
Test for block builder.
gavofyork b973ccc
Block import tests for client.
gavofyork ec61865
Tidy ups
gavofyork cec06a7
Repotted client
gavofyork 38cd36a
Avoid pointless work
gavofyork 8b7abca
All backend stuff now manages optional storage.
gavofyork 9dba812
Native runtime-io now supports empty storage items.
gavofyork 0f591c6
Finish up the API transition.
gavofyork 79c6b4c
Merge branch 'master' into gav-optional-storage
gavofyork a802b7e
Build fix.
gavofyork 3928c1c
Fix tests.
gavofyork 002ab5f
Merge branch 'master' into gav-optional-storage
gavofyork 61db63f
Remerge in changes to client.
gavofyork 5d1a3a7
Final fixes.
gavofyork 212d370
Unrevert typos
gavofyork 780e549
Remove accidentally committed change
gavofyork e552875
Bring back zero copy
gavofyork 0a08196
Fix merge.
gavofyork 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
This file contains 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 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 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 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 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 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 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
Binary file not shown.
Binary file modified
BIN
+905 Bytes
(100%)
polkadot/runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.compact.wasm
Binary file not shown.
Binary file modified
BIN
+905 Bytes
(100%)
polkadot/runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.wasm
Binary file not shown.
This file contains 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 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 |
---|---|---|
|
@@ -71,7 +71,7 @@ impl<B, E> BlockBuilder<B, E> where | |
pub fn push(&mut self, tx: Transaction) -> error::Result<()> { | ||
let output = state_machine::execute(&self.state, &mut self.changes, &self.executor, "execute_transaction", | ||
&vec![].and(&self.header).and(&tx))?; | ||
self.header = Header::decode(&mut &output[..]).expect("Header came straight out of runtime so must be valid"); | ||
self.header = Header::decode(&mut &output[..]).expect("Header came straight out of runtime do must be valid"); | ||
self.transactions.push(tx); | ||
Ok(()) | ||
} | ||
|
@@ -81,7 +81,7 @@ impl<B, E> BlockBuilder<B, E> where | |
self.header.transaction_root = ordered_trie_root(self.transactions.iter().map(Slicable::encode)).0.into(); | ||
let output = state_machine::execute(&self.state, &mut self.changes, &self.executor, "finalise_block", | ||
&self.header.encode())?; | ||
self.header = Header::decode(&mut &output[..]).expect("Header came straight out of runtime so must be valid"); | ||
self.header = Header::decode(&mut &output[..]).expect("Header came straight out of runtime do must be valid"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and here |
||
Ok(Block { | ||
header: self.header, | ||
transactions: self.transactions, | ||
|
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.
typo fix reverted