Skip to content

Commit

Permalink
Fix valid_round
Browse files Browse the repository at this point in the history
  • Loading branch information
hvanz committed Dec 15, 2023
1 parent e6f208c commit cdc796e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Code/itf/tests/consensus/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,12 @@ impl ItfRunner for ConsensusRunner {
}

ModelInput::ProposalAndPolkaPreviousAndValid(value, valid_round) => {
let input_round = Round::new(*valid_round);
let data = Info::new(input_round, address, some_other_node);
let data = Info::new(actual.round, address, some_other_node);
let proposal = TestContext::new_proposal(
actual.height,
input_round,
actual.round,
value_from_model(value).unwrap(),
Round::new(0), // FIXME
Round::new(*valid_round),
);
(data, Input::ProposalAndPolkaPrevious(proposal))
}
Expand All @@ -94,7 +93,7 @@ impl ItfRunner for ConsensusRunner {
actual.height,
actual.round,
value_from_model(value).unwrap(),
Round::new(0), // FIXME
Round::Nil,
);
(data, Input::ProposalAndPolkaCurrent(proposal))
}
Expand All @@ -106,9 +105,9 @@ impl ItfRunner for ConsensusRunner {
Height::new(*height as u64),
input_round,
value_from_model(value).unwrap(),
Round::new(0), // FIXME
Round::Nil,
);
(data, Input::InvalidProposalAndPolkaPrevious(proposal)) // CHECK: is this input correct?
(data, Input::InvalidProposalAndPolkaPrevious(proposal))
}

ModelInput::ProposalAndCommitAndValid(value) => {
Expand All @@ -117,7 +116,7 @@ impl ItfRunner for ConsensusRunner {
actual.height,
actual.round,
value_from_model(value).unwrap(),
Round::new(0), // FIXME
Round::Nil,
);
(data, Input::ProposalAndPrecommitValue(proposal))
}
Expand Down

0 comments on commit cdc796e

Please sign in to comment.