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
|
||||
if rem == nil && add == nil {
|
||||
return
|
||||
} else if rem != nil && add == nil {
|
||||
if rem == nil || add == nil {
|
||||
if rem != nil{
|
||||
discarded = append(discarded, rem.Transactions()...)
|
||||
return
|
||||
} else if rem == nil && add != nil {
|
||||
}
|
||||
if add != nil{
|
||||
included = append(included, add.Transactions()...)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue