mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-19 03:27:50 +01:00
Add node ID field to file structure
This commit is contained in:
@@ -159,6 +159,9 @@ func createTestResult(fileType int) (file core.BlockRecordFile) {
|
||||
file.ID = uuid.New()
|
||||
file.Size = uint64(len(randomData))
|
||||
|
||||
file.NodeID = make([]byte, 32) // node ID = blake3 hash of peer ID
|
||||
rand.Read(file.NodeID)
|
||||
|
||||
if fileType == -1 {
|
||||
switch file.Format {
|
||||
case core.FormatCSV, core.FormatEmail, core.FormatText, core.FormatHTML:
|
||||
|
||||
Reference in New Issue
Block a user