Skip to content

Commit 3b77e0f

Browse files
authored
core: remove unused code (#29381)
1 parent 7aba651 commit 3b77e0f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

core/blockchain.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,17 +1552,6 @@ func (bc *BlockChain) writeBlockWithState(block *types.Block, receipts []*types.
15521552
return nil
15531553
}
15541554

1555-
// WriteBlockAndSetHead writes the given block and all associated state to the database,
1556-
// and applies the block as the new chain head.
1557-
func (bc *BlockChain) WriteBlockAndSetHead(block *types.Block, receipts []*types.Receipt, logs []*types.Log, state *state.StateDB, emitHeadEvent bool) (status WriteStatus, err error) {
1558-
if !bc.chainmu.TryLock() {
1559-
return NonStatTy, errChainStopped
1560-
}
1561-
defer bc.chainmu.Unlock()
1562-
1563-
return bc.writeBlockAndSetHead(block, receipts, logs, state, emitHeadEvent)
1564-
}
1565-
15661555
// writeBlockAndSetHead is the internal implementation of WriteBlockAndSetHead.
15671556
// This function expects the chain mutex to be held.
15681557
func (bc *BlockChain) writeBlockAndSetHead(block *types.Block, receipts []*types.Receipt, logs []*types.Log, state *state.StateDB, emitHeadEvent bool) (status WriteStatus, err error) {

0 commit comments

Comments
 (0)