From 5309cd73cb3c240b7102d15f28321a373f0de84a Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 24 Nov 2016 13:47:03 +0100 Subject: [PATCH] internal/ethapi: fix block transaction list --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index ba918700ee..b414bb91c8 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -584,7 +584,7 @@ func (s *PublicBlockChainAPI) rpcOutputBlock(ctx context.Context, b *types.Block if inclTx { txs := b.Transactions() - transactions := make([]interface{}, len(txs)) + transactions := make([]interface{}, 0, len(txs)) for i, tx := range b.Transactions() { if fullTx { rtx := newRPCTransaction(tx)