-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
deadlock is fixed in #260 |
substrate/state-machine/src/lib.rs
Outdated
@@ -227,7 +227,7 @@ pub fn prove<B: TryIntoTrieBackend, Exec: CodeExecutor>( | |||
} | |||
|
|||
/// Check execution proof, generated by `prove` call. | |||
pub fn proof_check<Exec: CodeExecutor>( | |||
pub fn execution_proof_check<Exec: CodeExecutor>( |
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.
in comment: generated by prove_execution
call
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.
looks good!
substrate/client/src/in_mem.rs
Outdated
best_number: Zero::zero(), | ||
genesis_hash: Default::default(), | ||
}) | ||
storage: storage.clone(), |
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.
Is this clone really needed?
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.
Not in this PR :) It is actually from the next PR (https://github.com/paritytech/polkadot/pull/251/files#diff-8f118ee188780f9183b6af320625cfb9R106)
blockchain: Arc<Blockchain<S, F>>, | ||
} | ||
|
||
/// Ligh block (header and justification) import operation. |
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.
s/Ligh/Light
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.
Only a shallow review but looks good.
* Remove mock timestamp provider. * Relax runtime's minimum timestamp requirement. (We aren't using time-based slots, so it doesn't matter.) * bump runtime version
provide new fee proportion
Make the fraud proof report actually work
* return none if subscription returns early Signed-off-by: Gregory Hill <gregorydhill@outlook.com> * add comment on subscription close Signed-off-by: Gregory Hill <gregorydhill@outlook.com> * no need for jsonrpsee error enum Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
This PR is about switch from using in-memory to database backend on light nodes. Additionally,
client/src/light.rs
has been split into separate files inclient/src/light/
subfolder, because it grew too big.Databases of full && light nodes are made incompatible (i.e. you can't open full db by light client and light db by full client). Initially tried to use the same db for both nodes, but found this a bad decision, because it:
P.S.: syncing with
--light
is broken on current master, I'm currently working on it, but still wanted to start reviews of my previous work.