From 30981eeb67f50792a19c7b657bb9994f0ef68d80 Mon Sep 17 00:00:00 2001 From: NathanBSC Date: Tue, 20 Aug 2024 15:41:44 +0800 Subject: [PATCH] consensus/parlia: add debug log for backOffTime --- consensus/parlia/parlia.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/consensus/parlia/parlia.go b/consensus/parlia/parlia.go index 0ac2e1d3bc..0fbc8aa1c8 100644 --- a/consensus/parlia/parlia.go +++ b/consensus/parlia/parlia.go @@ -2127,6 +2127,10 @@ func (p *Parlia) backOffTime(snap *Snapshot, header *types.Header, val common.Ad backOffSteps[i], backOffSteps[j] = backOffSteps[j], backOffSteps[i] }) + for i := uint64(0); i < uint64(n); i++ { + log.Debug("backOffTime", "Number", header.Number, "val", validators[i], "delay", delay+backOffSteps[i]*wiggleTime) + } + delay += backOffSteps[idx] * wiggleTime return delay }