-
Notifications
You must be signed in to change notification settings - Fork 10
Conversation
…rd/fendermint into new-proposal-logic
if let Some(final_proposal) = r { | ||
// this is possible due to delayed execution as the proposed height's data cannot be | ||
// executed because they have yet to be executed. | ||
return if last_committed_height == final_proposal { |
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.
@adlrocha Please help review this check, it is possible under delayed execution.
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.
@cryptoAtwill, do you mind also propagating here some of the changes from Akosh here (or actually merging it here). Like e.g. the changes of the infra script: https://github.com/consensus-shipyard/fendermint/pull/435/files#diff-b901e8f9e6284b4e07255572105751b3e7b79683ddea1ff19bc9b06d30426b01R40, or including the comments and the parameter into the config.
The same applies to the max_proposal_range
.
for h in start..=end { | ||
if let Some(Some(_)) = cache.get_value(h) { | ||
return Ok(Some(h)); | ||
Ok(cache.lower_bound().and_then(|lower_bound| { |
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.
I assume here that if the cache doesn't have the height it will go to fetch it from the parent, right?
|
||
tracing::debug!(first_non_null_height, candidate_height); | ||
// an extra layer of delay | ||
let r = |
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.
let r = | |
let proposal_height = |
* remove look ahead in query topdown * use three pointers * up crate * fix error * Update fendermint/vm/topdown/src/sync/syncer.rs Co-authored-by: Akosh Farkash <[email protected]> * fix from integration testing * remove to_confirm pointer * restrict memory size * dont propose until interval reached * update latest height * split tendermint query to separete file * Update fendermint/vm/topdown/src/sync/syncer.rs Co-authored-by: adlrocha <[email protected]> * fix test linting * fix tests * more tests * check hash when executing * sync * sort by nonce * fmt * more unit tests * New proposal logic (#447) * new proposal logic * fmt * fix typo * minor changes * adding check * ignore proposal height * Fix type * expose config params --------- Co-authored-by: Alfonso de la Rocha <[email protected]> --------- Signed-off-by: Alfonso de la Rocha <[email protected]> Co-authored-by: Akosh Farkash <[email protected]> Co-authored-by: adlrocha <[email protected]> Co-authored-by: Alfonso de la Rocha <[email protected]>
Fix based on review feedbacks.