From 73c355591fe0279334675c555b6d614aa25b6781 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 9 Jun 2015 17:03:07 +0200 Subject: core, eth: document that result of GetTransactions is modifiable --- core/transaction_pool.go | 1 + 1 file changed, 1 insertion(+) (limited to 'core/transaction_pool.go') diff --git a/core/transaction_pool.go b/core/transaction_pool.go index 77744f8f7..918e7b957 100644 --- a/core/transaction_pool.go +++ b/core/transaction_pool.go @@ -247,6 +247,7 @@ func (tp *TxPool) GetTransaction(hash common.Hash) *types.Transaction { } // GetTransactions returns all currently processable transactions. +// The returned slice may be modified by the caller. func (self *TxPool) GetTransactions() (txs types.Transactions) { self.mu.Lock() defer self.mu.Unlock() -- cgit