aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
Diffstat (limited to 'dex')
-rw-r--r--dex/handler.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/dex/handler.go b/dex/handler.go
index fb2ce4e4d..fed1dc8b7 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -588,7 +588,10 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
for _, header := range headers {
if _, exist := snapshotHeight[header.Number.Uint64()]; exist {
+ tt := time.Now()
+ log.Debug("Handler get gov state by hash", "t", tt)
s, err := pm.blockchain.GetGovStateByHash(header.Hash())
+ log.Debug("Handler get gov state by hash", "elapsed", time.Since(tt))
if err != nil {
log.Warn("Get gov state by hash fail", "number", header.Number.Uint64(), "err", err)
return p.SendBlockHeaders(query.Flag, []*types.HeaderWithGovState{})