blockbook/db/test_helper.go
2018-09-26 12:19:40 +02:00

12 lines
390 B
Go

// +build integration
package db
func ConnectBlocks(w *SyncWorker, onNewBlock func(hash string), initialSync bool) error {
return w.connectBlocks(onNewBlock, initialSync)
}
func HandleFork(w *SyncWorker, localBestHeight uint32, localBestHash string, onNewBlock func(hash string), initialSync bool) error {
return w.handleFork(localBestHeight, localBestHash, onNewBlock, initialSync)
}