Skip to content

Commit c052d21

Browse files
apollo_state_sync,apollo_consensus: fix merge conflict
1 parent 1f5021c commit c052d21

File tree

6 files changed

+0
-56
lines changed

6 files changed

+0
-56
lines changed

crates/apollo_consensus/src/manager.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -433,16 +433,9 @@ impl<ContextT: ConsensusContext> MultiHeightManager<ContextT> {
433433
self.wait_until_sync_reaches_height(height, context).await;
434434
RunHeightRes::Sync
435435
}
436-
<<<<<<< HEAD
437436
e @ ConsensusError::BlockInfoConversion(_)
438437
| e @ ConsensusError::InternalNetworkError(_)
439438
| e @ ConsensusError::Other(_) => {
440-
||||||| ee7eff7e4
441-
e @ ConsensusError::BlockInfoConversion(_)
442-
| e @ ConsensusError::InternalNetworkError(_) => {
443-
=======
444-
e @ ConsensusError::InternalNetworkError(_) => {
445-
>>>>>>> origin/main-v0.14.1
446439
// The node is missing required components/data and cannot continue
447440
// participating in the consensus. A fix and node restart are required.
448441
return Err(e);

crates/apollo_consensus/src/types.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,8 @@ pub enum ConsensusError {
154154
// As opposed to an error between this node and peer nodes.
155155
#[error("{0}")]
156156
InternalNetworkError(String),
157-
<<<<<<< HEAD
158157
#[error("Block info conversion error: {0}")]
159158
BlockInfoConversion(#[from] starknet_api::StarknetApiError),
160159
#[error("{0}")]
161160
Other(String),
162-
||||||| ee7eff7e4
163-
#[error("Block info conversion error: {0}")]
164-
BlockInfoConversion(#[from] starknet_api::StarknetApiError),
165-
=======
166-
>>>>>>> origin/main-v0.14.1
167161
}

crates/apollo_consensus_orchestrator/src/sequencer_consensus_context.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,7 @@ use tokio_util::task::AbortOnDropHandle;
7272
use tracing::{error, error_span, info, instrument, trace, warn, Instrument};
7373

7474
use crate::build_proposal::{build_proposal, BuildProposalError, ProposalBuildArguments};
75-
<<<<<<< HEAD
7675
use crate::cende::{BlobParameters, CendeContext, InternalTransactionWithReceipt};
77-
||||||| ee7eff7e4
78-
use crate::cende::{BlobParameters, CendeContext};
79-
=======
80-
use crate::cende::{BlobParameters, CendeAmbassadorError, CendeContext};
81-
>>>>>>> origin/main-v0.14.1
8276
use crate::fee_market::{calculate_next_base_gas_price, FeeMarketInfo};
8377
use crate::metrics::{
8478
record_build_proposal_failure,
@@ -692,20 +686,8 @@ impl ConsensusContext for SequencerConsensusContext {
692686
proposals.remove_proposals_below_or_at_height(&height);
693687
}
694688

695-
<<<<<<< HEAD
696-
let DecisionReachedResponse {
697-
state_diff,
698-
l2_gas_used,
699-
central_objects,
700-
block_header_commitments,
701-
} = self.deps.batcher.decision_reached(DecisionReachedInput { proposal_id }).await?;
702-
||||||| ee7eff7e4
703-
let DecisionReachedResponse { state_diff, l2_gas_used, central_objects } =
704-
self.deps.batcher.decision_reached(DecisionReachedInput { proposal_id }).await?;
705-
=======
706689
let decision_reached_response =
707690
self.deps.batcher.decision_reached(DecisionReachedInput { proposal_id }).await?;
708-
>>>>>>> origin/main-v0.14.1
709691

710692
<<<<<<< HEAD
711693
// A hash map of (possibly failed) transactions, where the key is the transaction hash

crates/apollo_state_sync/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,8 @@ use apollo_storage::{StorageReader, StorageTxn};
2121
use async_trait::async_trait;
2222
use futures::channel::mpsc::{channel, Sender};
2323
use futures::SinkExt;
24-
<<<<<<< HEAD
2524
use starknet_api::block::{BlockHash, BlockNumber};
2625
use starknet_api::block_hash::block_hash_calculator::BlockHeaderCommitments;
27-
||||||| ee7eff7e4
28-
use starknet_api::block::{BlockHash, BlockNumber};
29-
=======
30-
use starknet_api::block::{BlockHash, BlockHeader, BlockNumber};
31-
>>>>>>> origin/main-v0.14.1
3226
use starknet_api::core::{ClassHash, ContractAddress, Nonce, BLOCK_HASH_TABLE_ADDRESS};
3327
use starknet_api::state::{StateNumber, StorageKey};
3428
use starknet_api::transaction::{Transaction, TransactionHash};

echonet/constants.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,12 @@
1717

1818
# Value to use as the end block number if none is given, large enough to not stop in the middle.
1919
MAX_BLOCK_NUMBER: int = 1 << 200
20-
<<<<<<< HEAD
2120

2221
# Revert error patterns to ignore when extracting revert mappings.
2322
IGNORED_REVERT_PATTERNS = [
2423
"attestation is out of window",
2524
"attestation with wrong block hash",
2625
]
27-
||||||| ee7eff7e4
28-
=======
2926

3027
# ---------------------------------------------------------------------------
3128
# Echonet config file locations / names
@@ -38,4 +35,3 @@
3835
# Env overrides for paths (define once).
3936
ECHONET_ENV_KEYS_PATH = "ECHONET_KEYS_PATH"
4037
ECHONET_ENV_SECRETS_PATH = "ECHONET_SECRETS_PATH"
41-
>>>>>>> origin/main-v0.14.1

echonet/deploy_echonet.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,16 @@
1515
from __future__ import annotations
1616

1717
import argparse
18-
<<<<<<< HEAD
19-
||||||| ee7eff7e4
20-
import json
21-
import subprocess
22-
from pathlib import Path
23-
24-
=======
25-
import subprocess
26-
from pathlib import Path
27-
28-
>>>>>>> origin/main-v0.14.1
2918
import base64
3019
import json
3120
import logging
3221
import shlex
3322
import shutil
3423
import subprocess
3524
import tarfile
36-
<<<<<<< HEAD
3725
from pathlib import Path
38-
||||||| ee7eff7e4
39-
=======
4026
from constants import ECHONET_KEYS_FILENAME
4127
from helpers import read_json_object
42-
>>>>>>> origin/main-v0.14.1
4328

4429
logger = logging.getLogger("deploy_echonet")
4530

0 commit comments

Comments
 (0)