Add comment

This commit is contained in:
8lecramm 2022-06-19 21:30:06 +02:00 committed by GitHub
parent 6f69341227
commit 1bcb2f45f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ func edit_blob(input []byte, miner [32]byte, nonce bool) (output []byte) {
var qnonce [8]byte var qnonce [8]byte
Found.Lock() Found.Lock()
// send nonce pattern to all nodes, lasts for 2 hours or until another nonce has been found // send nonce pattern to all nodes, lasts for 2 hours or until another nonce has been found
// TODO: add command argument // TODO: add command argument and switch to random data pool
if binary.BigEndian.Uint64(Found.nonce[:]) > 0 && time.Now().Sub(Found.timestamp) < time.Hour*2 { if binary.BigEndian.Uint64(Found.nonce[:]) > 0 && time.Now().Sub(Found.timestamp) < time.Hour*2 {
copy(qnonce[:], Found.nonce[:]) copy(qnonce[:], Found.nonce[:])
qrand.Read(qnonce[0:2]) qrand.Read(qnonce[0:2])