mirror of
https://github.com/kvazar-network/keva-stratum.git
synced 2025-01-25 22:34:28 +00:00
Log upstream name
This commit is contained in:
parent
9c4a41923e
commit
c0eb91d33a
@ -41,7 +41,7 @@ func (s *StratumServer) fetchBlockTemplate() bool {
|
|||||||
if t != nil && t.prevHash == reply.PrevHash {
|
if t != nil && t.prevHash == reply.PrevHash {
|
||||||
// Fallback to height comparison
|
// Fallback to height comparison
|
||||||
if len(reply.PrevHash) == 0 && reply.Height > t.height {
|
if len(reply.PrevHash) == 0 && reply.Height > t.height {
|
||||||
log.Printf("New block to mine at height %v, diff: %v", reply.Height, reply.Difficulty)
|
log.Printf("New block to mine on %s at height %v, diff: %v", r.Name, reply.Height, reply.Difficulty)
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user