From 09f5a64ce03ea8e8d3c99cbdaa1a297acd4290f5 Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 13 Aug 2020 13:43:40 +0300 Subject: [PATCH] use gasPerf for negative performance check it's the same in actually because effPerf<0 iff gasPerf<0, but we should be consistent Signed-off-by: Jakub Sztandera --- chain/messagepool/selection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/messagepool/selection.go b/chain/messagepool/selection.go index 43154a4b9..10ccf6b99 100644 --- a/chain/messagepool/selection.go +++ b/chain/messagepool/selection.go @@ -154,7 +154,7 @@ func (mp *MessagePool) selectMessagesOptimal(curTs, ts *types.TipSet, tq float64 last := len(chains) for i, chain := range chains { // did we run out of performing chains? - if chain.effPerf < 0 { + if chain.gasPerf < 0 { break }