Skip to content

Commit

Permalink
UnverifiedBlockHash size to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Jan 23, 2024
1 parent 9ef82aa commit 2d349dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chain/src/chain_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn start_chain_services(builder: ChainServicesBuilder) -> ChainController {

let (unverified_queue_stop_tx, unverified_queue_stop_rx) = ckb_channel::bounded::<()>(1);
let (unverified_tx, unverified_rx) =
channel::bounded::<UnverifiedBlockHash>(BLOCK_DOWNLOAD_WINDOW as usize * 512);
channel::bounded::<UnverifiedBlockHash>(BLOCK_DOWNLOAD_WINDOW as usize * 3);

let consumer_unverified_thread = thread::Builder::new()
.name("consume_unverified_blocks".into())
Expand Down
2 changes: 1 addition & 1 deletion chain/src/consume_unverified.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ impl ConsumeUnverifiedBlockProcessor {

let db_txn = Arc::new(self.shared.store().begin_transaction());
if new_best_block {
debug!(
info!(
"[verify block] new best block found: {} => {:#x}, difficulty diff = {:#x}, unverified_tip: {}",
block.header().number(),
block.header().hash(),
Expand Down

0 comments on commit 2d349dd

Please sign in to comment.