Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Dec 8, 2023
1 parent 7d50bf0 commit fd5a45f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base_layer/core/src/chain_storage/blockchain_database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2149,11 +2149,13 @@ fn insert_orphan_and_find_new_tips<T: BlockchainBackend>(
let chain_header = chain_block.to_chain_header();

// Extend orphan chain tip.

txn.insert_orphan(chain_block.to_arc_block());

txn.set_accumulated_data_for_orphan(chain_block.accumulated_data().clone());

db.write(txn)?;
let tips = find_orphan_descendant_tips_of(db, chain_header, prev_timestamps, validator)?;
let mut txn = DbTransaction::new();
debug!(target: LOG_TARGET, "Found {} new orphan tips", tips.len());
for new_tip in &tips {
txn.insert_orphan_chain_tip(
Expand Down

0 comments on commit fd5a45f

Please sign in to comment.