Skip to content

Commit f9342a5

Browse files
chore: resolve conflicts
Signed-off-by: Dori Medini <[email protected]>
1 parent a5487a4 commit f9342a5

32 files changed

+19176
-65540
lines changed

Cargo.lock

Lines changed: 2 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,7 @@ bincode = "1.3.3"
216216
bisection = "0.1.0"
217217
bitvec = "1.0.1"
218218
blake2 = "0.10.6"
219-
<<<<<<< HEAD
220-
blake2s = { path = "crates/blake2s", version = "0.0.0" }
221219
blockifier = { path = "crates/blockifier", version = "0.0.0" }
222-
||||||| fb2708ce3
223-
blake2s = { path = "crates/blake2s", version = "0.16.0-rc.0" }
224-
blockifier = { path = "crates/blockifier", version = "0.16.0-rc.0" }
225-
=======
226-
blockifier = { path = "crates/blockifier", version = "0.16.0-rc.0" }
227-
>>>>>>> origin/main-v0.14.1
228220
blockifier_reexecution.path = "crates/blockifier_reexecution"
229221
blockifier_test_utils = { path = "crates/blockifier_test_utils", version = "0.0.0" }
230222
byteorder = "1.4.3"
@@ -348,22 +340,14 @@ sha2 = "0.10.8"
348340
sha3 = "0.10.8"
349341
shared_execution_objects.path = "crates/shared_execution_objects"
350342
simple_logger = "4.0.0"
351-
sizeof = { path = "crates/sizeof", version = "0.16.0-rc.0" }
352-
sizeof_internal = { path = "crates/sizeof/sizeof_internal", version = "0.16.0-rc.0" }
353-
sizeof_macro = { path = "crates/sizeof/sizeof_macro", version = "0.16.0-rc.0" }
343+
sizeof = { path = "crates/sizeof", version = "0.0.0" }
344+
sizeof_internal = { path = "crates/sizeof/sizeof_internal", version = "0.0.0" }
345+
sizeof_macro = { path = "crates/sizeof/sizeof_macro", version = "0.0.0" }
354346
socket2 = "0.5.8"
355347
starknet-core = "0.16.0"
356348
starknet-crypto = "0.8.1"
357-
<<<<<<< HEAD
358-
starknet-types-core = "0.2.1"
359-
starknet_api = { path = "crates/starknet_api", version = "0.0.0" }
360-
||||||| fb2708ce3
361-
starknet-types-core = "0.2.1"
362-
starknet_api = { path = "crates/starknet_api", version = "0.16.0-rc.0" }
363-
=======
364349
starknet-types-core = "=0.2.3"
365-
starknet_api = { path = "crates/starknet_api", version = "0.16.0-rc.0" }
366-
>>>>>>> origin/main-v0.14.1
350+
starknet_api = { path = "crates/starknet_api", version = "0.0.0" }
367351
starknet_committer.path = "crates/starknet_committer"
368352
starknet_committer_and_os_cli.path = "crates/starknet_committer_and_os_cli"
369353
starknet_committer_cli.path = "crates/starknet_committer_cli"

crates/apollo_consensus/src/manager_test.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,10 @@ fn expect_validate_proposal(context: &mut MockTestContext, block_hash: Felt, tim
7272

7373
fn assert_decision(res: RunHeightRes, id: Felt, round: u32) {
7474
match res {
75-
<<<<<<< HEAD
7675
RunHeightRes::Decision(decision) => {
77-
assert_eq!(decision.block, BlockHash(id));
76+
assert_eq!(decision.block, ProposalCommitment(id));
7877
assert_eq!(decision.precommits[0].round, round);
7978
}
80-
||||||| fb2708ce3
81-
RunHeightRes::Decision(decision) => assert_eq!(decision.block, BlockHash(id)),
82-
=======
83-
RunHeightRes::Decision(decision) => assert_eq!(decision.block, ProposalCommitment(id)),
84-
>>>>>>> origin/main-v0.14.1
8579
_ => panic!("Expected decision"),
8680
}
8781
}
@@ -398,7 +392,7 @@ async fn future_height_limit_caching_and_dropping() {
398392
let (height2_nil_vote_trigger, height2_nil_vote_wait) = oneshot::channel();
399393
context
400394
.expect_broadcast()
401-
.withf(move |vote: &Vote| vote.height == 2 && vote.block_hash.is_none())
395+
.withf(move |vote: &Vote| vote.height == 2 && vote.proposal_commitment.is_none())
402396
.times(1)
403397
.return_once(move |_| {
404398
height2_nil_vote_trigger.send(()).unwrap();

crates/apollo_consensus_manager/src/consensus_manager.rs

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -260,15 +260,9 @@ impl ConsensusManager {
260260
} else {
261261
QuorumType::Byzantine
262262
};
263-
<<<<<<< HEAD
264263
// TODO(Asmaa): refactor to pass entire consensus_manager_config instead of extracting
265264
// each field, and handle non-config params.
266-
let run_consensus_args = apollo_consensus::RunConsensusArguments {
267-
||||||| fb2708ce3
268-
let run_consensus_args = apollo_consensus::RunConsensusArguments {
269-
=======
270265
apollo_consensus::RunConsensusArguments {
271-
>>>>>>> origin/main-v0.14.1
272266
start_active_height: active_height,
273267
start_observe_height: observer_height,
274268
validator_id: self.config.consensus_manager_config.dynamic_config.validator_id,
@@ -280,53 +274,7 @@ impl ConsensusManager {
280274
.static_config
281275
.sync_retry_interval,
282276
quorum_type,
283-
<<<<<<< HEAD
284277
future_msg_limit: self.config.consensus_manager_config.static_config.future_msg_limit,
285-
};
286-
let consensus_fut = apollo_consensus::run_consensus(
287-
run_consensus_args,
288-
context,
289-
votes_broadcast_channels.into(),
290-
inbound_internal_receiver,
291-
);
292-
293-
tokio::select! {
294-
consensus_result = consensus_fut => {
295-
match consensus_result {
296-
Ok(_) => panic!("Consensus task finished unexpectedly"),
297-
Err(e) => Err(e),
298-
}
299-
},
300-
network_result = network_task => {
301-
panic!("Consensus' network task finished unexpectedly: {network_result:?}");
302-
}
303-
stream_handler_result = stream_handler_task => {
304-
panic!("Consensus' stream handler task finished unexpectedly: {stream_handler_result:?}");
305-
}
306-
||||||| fb2708ce3
307-
};
308-
let consensus_fut = apollo_consensus::run_consensus(
309-
run_consensus_args,
310-
context,
311-
votes_broadcast_channels.into(),
312-
inbound_internal_receiver,
313-
);
314-
315-
tokio::select! {
316-
consensus_result = consensus_fut => {
317-
match consensus_result {
318-
Ok(_) => panic!("Consensus task finished unexpectedly"),
319-
Err(e) => Err(e),
320-
}
321-
},
322-
network_result = network_task => {
323-
panic!("Consensus' network task finished unexpectedly: {network_result:?}");
324-
}
325-
stream_handler_result = stream_handler_task => {
326-
panic!("Consensus' stream handler task finished unexpectedly: {stream_handler_result:?}");
327-
}
328-
=======
329-
>>>>>>> origin/main-v0.14.1
330278
}
331279
}
332280

crates/apollo_gateway/src/errors.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,7 @@ use crate::rpc_objects::{RpcErrorCode, RpcErrorResponse};
2626
pub type GatewayResult<T> = Result<T, StarknetError>;
2727

2828
#[derive(Debug, Error)]
29-
<<<<<<< HEAD
3029
#[cfg_attr(any(test, feature = "testing"), derive(PartialEq))]
31-
||||||| fb2708ce3
32-
#[cfg_attr(test, derive(PartialEq))]
33-
=======
34-
#[cfg_attr(any(feature = "testing", test), derive(PartialEq))]
35-
>>>>>>> origin/main-v0.14.1
3630
pub enum StatelessTransactionValidatorError {
3731
#[error(
3832
"Calldata length exceeded maximum: length {calldata_length}

crates/apollo_integration_tests/src/anvil_base_layer.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,7 @@ impl BaseLayerContract for AnvilBaseLayer {
190190
self.ethereum_base_layer.latest_proved_block(finality).await
191191
}
192192

193-
async fn latest_l1_block_number(
194-
&self,
195-
finality: u64,
196-
) -> Result<Option<L1BlockNumber>, Self::Error> {
193+
async fn latest_l1_block_number(&self, finality: u64) -> Result<L1BlockNumber, Self::Error> {
197194
self.ethereum_base_layer.latest_l1_block_number(finality).await
198195
}
199196

crates/apollo_integration_tests/tests/end_to_end_flow_test.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ use apollo_integration_tests::utils::{
88
};
99
use blockifier::bouncer::BouncerWeights;
1010
use mempool_test_utils::starknet_api_test_utils::MultiAccountTransactionGenerator;
11-
<<<<<<< HEAD
12-
use starknet_api::execution_resources::GasAmount;
13-
||||||| fb2708ce3
14-
use papyrus_base_layer::ethereum_base_layer_contract::L1ToL2MessageArgs;
15-
use starknet_api::execution_resources::GasAmount;
16-
=======
17-
use papyrus_base_layer::ethereum_base_layer_contract::L1ToL2MessageArgs;
18-
>>>>>>> origin/main-v0.14.1
1911
use starknet_api::rpc_transaction::RpcTransaction;
2012
use starknet_api::transaction::{L1HandlerTransaction, TransactionHash};
2113

crates/apollo_integration_tests/tests/test_custom_cairo1_txs.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,8 @@ async fn custom_cairo1_txs() {
3232
end_to_end_flow(
3333
TestIdentifier::EndToEndFlowTestCustomSyscallInvokeTxs,
3434
create_custom_cairo1_txs_scenario(),
35-
<<<<<<< HEAD
36-
GasAmount(120000000),
37-
true,
38-
||||||| fb2708ce3
39-
GasAmount(110000000),
40-
true,
41-
=======
4235
BouncerWeights::default().proving_gas,
4336
false,
44-
>>>>>>> origin/main-v0.14.1
4537
false,
4638
)
4739
.await

crates/apollo_integration_tests/tests/test_custom_syscall_invoke_txs.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use mempool_test_utils::starknet_api_test_utils::{
1010
use starknet_api::execution_resources::GasAmount;
1111
use starknet_api::felt;
1212
use starknet_api::rpc_transaction::RpcTransaction;
13+
use starknet_api::transaction::fields::Tip;
1314

1415
use crate::common::{end_to_end_flow, validate_tx_count, TestScenario};
1516

@@ -80,7 +81,9 @@ fn generate_direct_test_contract_invoke_txs(
8081
.iter()
8182
.map(|(fn_name, fn_args)| {
8283
let calldata = create_calldata(test_contract.get_instance_address(0), fn_name, fn_args);
83-
account_tx_generator.generate_rpc_invoke_tx(DEFAULT_TIP, calldata)
84+
let args =
85+
account_tx_generator.build_invoke_tx_args().tip(Tip(DEFAULT_TIP)).calldata(calldata);
86+
account_tx_generator.generate_raw_invoke(args)
8487
})
8588
.collect()
8689
}
@@ -98,7 +101,6 @@ fn generate_nested_library_call_invoke_txs(
98101
.iter()
99102
.map(|(fn_name, fn_args)| {
100103
account_tx_generator.generate_library_call_invoke_tx(
101-
DEFAULT_TIP,
102104
&test_contract,
103105
&test_contract,
104106
fn_name,

crates/apollo_starknet_os_program/src/cairo/starkware/starknet/core/os/naive_blake.cairo

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
from starkware.cairo.common.alloc import alloc
22
from starkware.cairo.common.cairo_blake2s.blake2s import blake_with_opcode
3-
<<<<<<< HEAD
4-
||||||| fb2708ce3
5-
from starkware.cairo.common.cairo_blake2s.blake2s import BLAKE2S_FINALIZE_INSTRUCTION
6-
=======
73

84
// Gets a felt that represent a 256-bit unsigned integer stored as an array of eight 32-bit unsigned integers
95
// represented in little-endian notation. Return the felt representation of the integer modulo prime.
@@ -12,7 +8,6 @@ func felt_from_le_u32s(u32s: felt*) -> felt {
128
u32s[3] * 2 ** 96 + u32s[2] * 2 ** 64 + u32s[1] * 2 ** 32 + u32s[0];
139
return value;
1410
}
15-
>>>>>>> origin/main-v0.14.1
1611

1712
// Computes blake2s of `input` of size 16 felts, representing 32 bits each.
1813
// The initial state is the standard BLAKE2s IV XORed with the parameter block P[0] = 0x01010020.

0 commit comments

Comments
 (0)