Clean up after merge
This commit is contained in:
parent
b808126fc0
commit
60bb77b25d
@ -1981,20 +1981,6 @@ func (bc *BlockChain) reorg(oldBlock, newBlock *types.Block) error {
|
|||||||
}
|
}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
// mergeLogs returns a merged log slice with specified sort order.
|
|
||||||
mergeLogs = func(logs [][]*types.Log, reverse bool) []*types.Log {
|
|
||||||
var ret []*types.Log
|
|
||||||
if reverse {
|
|
||||||
for i := len(logs) - 1; i >= 0; i-- {
|
|
||||||
ret = append(ret, logs[i]...)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
for i := 0; i < len(logs); i++ {
|
|
||||||
ret = append(ret, logs[i]...)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return ret
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
// Reduce the longer chain to the same number as the shorter one
|
// Reduce the longer chain to the same number as the shorter one
|
||||||
if oldBlock.NumberU64() > newBlock.NumberU64() {
|
if oldBlock.NumberU64() > newBlock.NumberU64() {
|
||||||
|
@ -758,9 +758,6 @@ running:
|
|||||||
if p.Inbound() {
|
if p.Inbound() {
|
||||||
inboundCount++
|
inboundCount++
|
||||||
}
|
}
|
||||||
if conn, ok := c.fd.(*meteredConn); ok {
|
|
||||||
conn.handshakeDone(p)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
c.cont <- err
|
c.cont <- err
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user