We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da5778f commit 59e0f5dCopy full SHA for 59e0f5d
cmd/stellar-rpc/internal/methods/get_transactions.go
@@ -216,7 +216,7 @@ func (h transactionsRPCHandler) getTransactionsByLedgerSequence(ctx context.Cont
216
217
// Iterate through each ledger and its transactions until limit or end range is reached.
218
// The latest ledger acts as the end ledger range for the request.
219
- var txns []protocol.TransactionInfo
+ txns := make([]protocol.TransactionInfo, 0, limit)
220
var done bool
221
cursor := toid.New(0, 0, 0)
222
for ledgerSeq := start.LedgerSequence; ledgerSeq <= int32(ledgerRange.LastLedger.Sequence); ledgerSeq++ {
0 commit comments