mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
internal/ethapi: fix block transaction list
This commit is contained in:
parent
d54ad55c60
commit
5309cd73cb
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue