From bdc1fc4ffff51ef2168cd27ecad3af3acd9a5516 Mon Sep 17 00:00:00 2001 From: pragmaxim Date: Fri, 16 Jan 2026 05:48:34 +0100 Subject: [PATCH] fix: commit 0790f881 broke test compilation --- db/test_helper.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/db/test_helper.go b/db/test_helper.go index 9e6a2637..2779a583 100644 --- a/db/test_helper.go +++ b/db/test_helper.go @@ -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)) +}