Skip to content

Commit

Permalink
fix: conflict resolution
Browse files Browse the repository at this point in the history
Signed-off-by: Dori Medini <dori@starkware.co>
  • Loading branch information
dorimedini-starkware committed Jul 29, 2024
1 parent 3014399 commit 443e717
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/committer_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,8 @@ jobs:
# Input files didn't change.
- if: env.OLD_BENCH_INPUT_FILES_PREFIX == env.NEW_BENCH_INPUT_FILES_PREFIX
run: |
<<<<<<< HEAD
mv ./crates/committer_cli/benches/tree_flow_inputs.json_bu ./crates/committer_cli/test_inputs/tree_flow_inputs.json
mv ./crates/committer_cli/benches/committer_flow_inputs.json_bu ./crates/committer_cli/test_inputs/committer_flow_inputs.json
||||||| a9dc431b
mv ./crates/committer_cli/benches/tree_flow_inputs.json_bu ./crates/committer_cli/benches/tree_flow_inputs.json
mv ./crates/committer_cli/benches/committer_flow_inputs.json_bu ./crates/committer_cli/benches/committer_flow_inputs.json
=======
mv ./crates/committer_cli/test_inputs/tree_flow_inputs.json_bu ./crates/committer_cli/test_inputs/tree_flow_inputs.json
mv ./crates/committer_cli/test_inputs/committer_flow_inputs.json_bu ./crates/committer_cli/test_inputs/committer_flow_inputs.json
>>>>>>> origin/main-v0.13.2
# Input files did change, download new inputs.
- if: env.OLD_BENCH_INPUT_FILES_PREFIX != env.NEW_BENCH_INPUT_FILES_PREFIX
Expand Down
31 changes: 0 additions & 31 deletions crates/sequencing/papyrus_consensus/src/state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,11 @@ use crate::types::{Round, ValidatorId};
/// Events which the state machine sends/receives.
#[derive(Debug, Clone, PartialEq)]
pub enum StateMachineEvent {
<<<<<<< HEAD
/// Sent by the state machine when a block is required to propose (BlockHash is always None).
/// While waiting for the response of GetProposal, the state machine will buffer all other
/// events. The caller must respond with a valid block hash for this height to the state
/// machine, and the same round sent out.
GetProposal(Option<BlockHash>, Round),
||||||| a9dc431b
/// StartRound is effective 2 questions:
/// 1. Is the local node the proposer for this round?
/// 2. If so, what value should be proposed?
/// While waiting for the response to this event, the state machine will buffer all other
/// events.
///
/// How should the caller handle this event?
/// 1. If the local node is not the proposer, the caller responds with with `None` as the block
/// hash.
/// 2. If the local node is the proposer and a block hash was supplied by the state machine,
/// the caller responds with the supplied block hash.
/// 3. If the local node is the proposer and no block hash was supplied by the state machine,
/// the caller must find/build a block to respond with.
StartRound(Option<BlockHash>, Round),
=======
/// StartRound is effective 2 questions:
/// 1. Is the local node the proposer for this round?
/// 2. If so, what value should be proposed? While waiting for the response to this event, the
/// state machine will buffer all other events.
///
/// How should the caller handle this event?
/// 1. If the local node is not the proposer, the caller responds with with `None` as the block
/// hash.
/// 2. If the local node is the proposer and a block hash was supplied by the state machine,
/// the caller responds with the supplied block hash.
/// 3. If the local node is the proposer and no block hash was supplied by the state machine,
/// the caller must find/build a block to respond with.
StartRound(Option<BlockHash>, Round),
>>>>>>> origin/main-v0.13.2
/// Consensus message, can be both sent from and to the state machine.
Proposal(BlockHash, Round),
/// Consensus message, can be both sent from and to the state machine.
Expand Down

0 comments on commit 443e717

Please sign in to comment.