Commit a2f57bd2 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #4216 from estensen/prealloc-op-node

op-node: Preallocate slice
parents e621ab07 3f2406cf
......@@ -164,7 +164,7 @@ func (co *ChannelOut) OutputFrame(w *bytes.Buffer, maxSize uint64) error {
// blockToBatch transforms a block into a batch object that can easily be RLP encoded.
func blockToBatch(block *types.Block) (*BatchData, error) {
var opaqueTxs []hexutil.Bytes
opaqueTxs := make([]hexutil.Bytes, 0, len(block.Transactions()))
for i, tx := range block.Transactions() {
if tx.Type() == types.DepositTxType {
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment