diff options
author | Felix Lange <fjl@twurst.com> | 2015-06-09 23:03:07 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-06-09 23:07:10 +0800 |
commit | 73c355591fe0279334675c555b6d614aa25b6781 (patch) | |
tree | 73e61b8040ae81de2a5108d54dd93bf8dba581ae /core | |
parent | 8dc3048f6556e3fb2f719f383834332656b4c8fe (diff) | |
download | dexon-73c355591fe0279334675c555b6d614aa25b6781.tar dexon-73c355591fe0279334675c555b6d614aa25b6781.tar.gz dexon-73c355591fe0279334675c555b6d614aa25b6781.tar.bz2 dexon-73c355591fe0279334675c555b6d614aa25b6781.tar.lz dexon-73c355591fe0279334675c555b6d614aa25b6781.tar.xz dexon-73c355591fe0279334675c555b6d614aa25b6781.tar.zst dexon-73c355591fe0279334675c555b6d614aa25b6781.zip |
core, eth: document that result of GetTransactions is modifiable
Diffstat (limited to 'core')
-rw-r--r-- | core/transaction_pool.go | 1 |
1 files changed, 1 insertions, 0 deletions
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() |