Finished dummy download API.

This commit is contained in:
Kleissner
2021-10-04 07:23:19 +02:00
parent 958ec52f83
commit 72787044d2
5 changed files with 428 additions and 24 deletions

View File

@@ -152,7 +152,7 @@ func (job *SearchJob) ReturnNext(Limit int) (Result []*core.BlockRecordFile) {
// createTestResult creates a test file. fileType = -1 for any.
func createTestResult(fileType int) (file core.BlockRecordFile) {
randomData := make([]byte, 10)
randomData := make([]byte, 10*1024)
rand.Read(randomData)
file.Hash = core.Data2Hash(randomData)