From 9bc5d9489d8d92f221c18391e14c3690427c35a2 Mon Sep 17 00:00:00 2001 From: vyzo Date: Sat, 8 Aug 2020 17:07:37 +0300 Subject: [PATCH] also log chain creation timings --- chain/messagepool/selection.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chain/messagepool/selection.go b/chain/messagepool/selection.go index 014bd4ab2..4908e2eec 100644 --- a/chain/messagepool/selection.go +++ b/chain/messagepool/selection.go @@ -72,11 +72,13 @@ func (mp *MessagePool) selectMessages(curTs, ts *types.TipSet) ([]*types.SignedM } // 1. Create a list of dependent message chains with maximal gas reward per limit consumed + startChains := time.Now() var chains []*msgChain for actor, mset := range pending { next := mp.createMessageChains(actor, mset, baseFee, ts) chains = append(chains, next...) } + log.Infow("create message chains done", "took", time.Since(startChains)) // 2. Sort the chains sort.Slice(chains, func(i, j int) bool {