aboutsummaryrefslogtreecommitdiffstats
path: root/les/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'les/server.go')
-rw-r--r--les/server.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/les/server.go b/les/server.go
index b04c9c4ca..04bfa0292 100644
--- a/les/server.go
+++ b/les/server.go
@@ -19,7 +19,6 @@ package les
import (
"encoding/binary"
- "fmt"
"math"
"sync"
"time"
@@ -292,7 +291,7 @@ func (pm *ProtocolManager) blockLoop() {
lastHead = header
lastBroadcastTd = td
- log.Debug(fmt.Sprint("===> ", number, hash, td, reorg))
+ log.Debug("Announcing block to peers", "number", number, "hash", hash, "td", td, "reorg", reorg)
announce := announceData{Hash: hash, Number: number, Td: td, ReorgDepth: reorg}
for _, p := range peers {
@@ -396,7 +395,7 @@ func makeCht(db ethdb.Database) bool {
} else {
lastChtNum++
- log.Trace(fmt.Sprintf("cht: %d %064x", lastChtNum, root))
+ log.Trace("Generated CHT", "number", lastChtNum, "root", root.Hex())
storeChtRoot(db, lastChtNum, root)
var data [8]byte