mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-19 11:37:51 +01:00
Add special type -2 to /explore.
This commit is contained in:
@@ -196,6 +196,12 @@ func createTestResult(fileType int) (file core.BlockRecordFile) {
|
||||
|
||||
}
|
||||
} else {
|
||||
if fileType == -2 {
|
||||
// Binary, Compressed, Container, Executable
|
||||
otherList := []int{core.TypeBinary, core.TypeCompressed, core.TypeContainer, core.TypeExecutable}
|
||||
fileType = otherList[rand.Intn(len(otherList))]
|
||||
}
|
||||
|
||||
file.Type = uint8(fileType)
|
||||
switch file.Type {
|
||||
case core.TypeBinary:
|
||||
|
||||
Reference in New Issue
Block a user