mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
[#19212] code cleanup
This commit is contained in:
parent
472a66bb12
commit
80a2999624
1 changed files with 7 additions and 7 deletions
|
|
@ -394,13 +394,13 @@ func (pool *TxPool) reset(oldHead, newHead *types.Header) {
|
||||||
)
|
)
|
||||||
|
|
||||||
// handle cases where rem or add could come up nil
|
// handle cases where rem or add could come up nil
|
||||||
if rem == nil && add == nil {
|
if rem == nil || add == nil {
|
||||||
return
|
if rem != nil{
|
||||||
} else if rem != nil && add == nil {
|
discarded = append(discarded, rem.Transactions()...)
|
||||||
discarded = append(discarded, rem.Transactions()...)
|
}
|
||||||
return
|
if add != nil{
|
||||||
} else if rem == nil && add != nil {
|
included = append(included, add.Transactions()...)
|
||||||
included = append(included, add.Transactions()...)
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue