mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +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 {
|
if inclTx {
|
||||||
txs := b.Transactions()
|
txs := b.Transactions()
|
||||||
transactions := make([]interface{}, len(txs))
|
transactions := make([]interface{}, 0, len(txs))
|
||||||
for i, tx := range b.Transactions() {
|
for i, tx := range b.Transactions() {
|
||||||
if fullTx {
|
if fullTx {
|
||||||
rtx := newRPCTransaction(tx)
|
rtx := newRPCTransaction(tx)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue