fix: commit 0790f881 broke test compilation

This commit is contained in:
pragmaxim
2026-01-16 05:48:34 +01:00
parent a85a3432a7
commit bdc1fc4fff

View File

@@ -17,3 +17,12 @@ func ConnectBlocks(w *SyncWorker, onNewBlock bchain.OnNewBlockFunc, initialSync
func HandleFork(w *SyncWorker, localBestHeight uint32, localBestHash string, onNewBlock bchain.OnNewBlockFunc, initialSync bool) error {
return w.handleFork(localBestHeight, localBestHash, onNewBlock, initialSync)
}
// ConnectBlocksParallel keeps legacy integration tests compiling against the new API.
func (w *SyncWorker) ConnectBlocksParallel(lower, higher uint32) error {
workers := w.syncWorkers
if workers < 1 {
workers = 1
}
return w.ParallelConnectBlocks(nil, lower, higher, uint32(workers))
}