core, eth: document that result of GetTransactions is modifiable

This commit is contained in:
Felix Lange
2015-06-09 17:03:07 +02:00
parent 8dc3048f65
commit 73c355591f
2 changed files with 5 additions and 2 deletions

View File

@ -57,10 +57,12 @@ var errorToString = map[int]string{
ErrSuspendedPeer: "Suspended peer",
}
// backend is the interface the ethereum protocol backend should implement
// used as an argument to EthProtocol
type txPool interface {
// AddTransactions should add the given transactions to the pool.
AddTransactions([]*types.Transaction)
// GetTransactions should return pending transactions.
// The slice should be modifiable by the caller.
GetTransactions() types.Transactions
}