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 <kubuxu@protocol.ai>
This commit is contained in:
vyzo 2020-08-13 13:43:40 +03:00 committed by Jakub Sztandera
parent f3eec33bec
commit 09f5a64ce0
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -154,7 +154,7 @@ func (mp *MessagePool) selectMessagesOptimal(curTs, ts *types.TipSet, tq float64
last := len(chains) last := len(chains)
for i, chain := range chains { for i, chain := range chains {
// did we run out of performing chains? // did we run out of performing chains?
if chain.effPerf < 0 { if chain.gasPerf < 0 {
break break
} }