mirror of
https://github.com/trezor/blockbook.git
synced 2026-02-20 00:51:39 +01:00
fix: commit 0790f881 broke test compilation
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user