Skip to content

Commit

Permalink
LiveSync: move BlockQueue to own task
Browse files Browse the repository at this point in the history
  • Loading branch information
styppo authored and jsdanielh committed Jul 12, 2024
1 parent 634c39b commit 58a10c1
Show file tree
Hide file tree
Showing 8 changed files with 1,198 additions and 975 deletions.
9 changes: 6 additions & 3 deletions consensus/src/sync/live/block_queue/live_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ use nimiq_hash::Blake2bHash;
use nimiq_network_interface::network::Network;
use parking_lot::Mutex;

use super::{BlockQueue, QueuedBlock};
use super::QueuedBlock;
use crate::sync::{
live::queue::{self, LiveSyncQueue},
live::{
block_queue::queue::BlockQueue,
queue::{self, LiveSyncQueue},
},
syncer::{LiveSyncEvent, LiveSyncPeerEvent, LiveSyncPushEvent},
};

Expand Down Expand Up @@ -179,6 +182,6 @@ impl<N: Network> LiveSyncQueue<N> for BlockQueue<N> {
}

fn resolve_block(&mut self, request: crate::consensus::ResolveBlockRequest<N>) {
self.resolve_block(request)
BlockQueue::resolve_block(self, request)
}
}
Loading

0 comments on commit 58a10c1

Please sign in to comment.