good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 7a3036c1 authored by Jaynti Kanani's avatar Jaynti Kanani
Browse files

fix: remove duplicate merge logs block

parent b395595c
Branches
Tags
No related merge requests found
......@@ -2164,20 +2164,6 @@ func (bc *BlockChain) reorg(oldBlock, newBlock *types.Block) error {
}
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
if oldBlock.NumberU64() > newBlock.NumberU64() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment