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 --- eth/protocol.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'eth') diff --git a/eth/protocol.go b/eth/protocol.go index 9ccf2cb60..57805d9bd 100644 --- a/eth/protocol.go +++ b/eth/protocol.go @@ -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 } -- cgit v1.2.3