Skip to content

Commit

Permalink
remove ineffectual assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ssilagadze committed Jan 5, 2024
1 parent 722900d commit cbc20b1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions blocktx/peer_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,6 @@ func (bs *PeerHandler) markTransactionsAsMined(blockId uint64, merkleTree []*cha
return fmt.Errorf("failed to insert block transactions at block height %d: %v", blockHeight, err)
}
// free up memory
txs = nil
merklePaths = nil

txs = make([]*blocktx_api.TransactionAndSource, 0, bs.transactionStorageBatchSize)
merklePaths = make([]string, 0, bs.transactionStorageBatchSize)

Expand Down

0 comments on commit cbc20b1

Please sign in to comment.