diff --git a/core/tx_pool.go b/core/tx_pool.go index bdde7c794b..5202dc8d7e 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -394,13 +394,13 @@ func (pool *TxPool) reset(oldHead, newHead *types.Header) { ) // handle cases where rem or add could come up nil - if rem == nil && add == nil { - return - } else if rem != nil && add == nil { - discarded = append(discarded, rem.Transactions()...) - return - } else if rem == nil && add != nil { - included = append(included, add.Transactions()...) + if rem == nil || add == nil { + if rem != nil{ + discarded = append(discarded, rem.Transactions()...) + } + if add != nil{ + included = append(included, add.Transactions()...) + } return }