mirror of
https://github.com/8lecramm/derohe-proxy.git
synced 2025-01-10 13:57:56 +00:00
Add comment
This commit is contained in:
parent
6f69341227
commit
1bcb2f45f5
@ -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])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user