Skip to content

Commit

Permalink
merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Nov 2, 2023
1 parent 28f009b commit ccf9fd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion base_layer/core/tests/helpers/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub enum WhatToDelete {
// Private helper function to setup a delete a block transaction.
// Note: This private function will panic if the index is out of bounds - caller function's responsibility.
fn delete_block(txn: &mut DbTransaction, node: &NodeInterfaces, blocks: &[ChainBlock], index: usize) {
txn.delete_block(*blocks[index].hash());
txn.delete_tip_block(*blocks[index].hash());
txn.delete_orphan(*blocks[index].hash());
txn.set_best_block(
blocks[index + 1].height(),
Expand Down
4 changes: 2 additions & 2 deletions base_layer/core/tests/tests/node_state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ async fn test_listening_initial_fallen_behind() {
let mut prev_block = bob_db
.prepare_new_block(chain_block(prev_block.block(), vec![], &consensus_manager, &key_manager).await)
.unwrap();
prev_block.header.output_mmr_size += 1;
prev_block.header.output_smt_size += 1;
prev_block.header.kernel_mmr_size += 1;
bob_local_nci.submit_block(prev_block).await.unwrap();
assert_eq!(bob_db.get_height().unwrap(), 2);
Expand All @@ -210,7 +210,7 @@ async fn test_listening_initial_fallen_behind() {
let mut prev_block = charlie_db
.prepare_new_block(chain_block(prev_block.block(), vec![], &consensus_manager, &key_manager).await)
.unwrap();
prev_block.header.output_mmr_size += 1;
prev_block.header.output_smt_size += 1;
prev_block.header.kernel_mmr_size += 1;
charlie_local_nci.submit_block(prev_block).await.unwrap();
assert_eq!(charlie_db.get_height().unwrap(), 2);
Expand Down

0 comments on commit ccf9fd6

Please sign in to comment.