Skip to content

Commit

Permalink
Print the appendQueue that is blocking you from syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
Djadih committed Sep 21, 2023
1 parent fea9ce1 commit b6b059b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (c *Core) InsertChain(blocks types.Blocks) (int, error) {
log.Info("Append failed.", "hash", block.Hash(), "err", err)
}
if err != nil && strings.Contains(err.Error(), "connection refused") {
log.Error("Append failed because of conenction refused error")
log.Error("Append failed because of connection refused error")
} else {
c.removeFromAppendQueue(block)
}
Expand All @@ -153,6 +153,9 @@ func (c *Core) procAppendQueue() {

if c.procCounter > c_normalListProcCounter {
c.procCounter = 0
if len(c.appendQueue.Keys()) == 0 {
log.Info("No blocks waiting to be appended in: " + common.NodeLocation.Name())
}
} else {
c.procCounter++
}
Expand Down

0 comments on commit b6b059b

Please sign in to comment.