aboutsummaryrefslogtreecommitdiffstats
path: root/eth/protocol.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-10 00:51:09 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-10 00:51:09 +0800
commit5f341e5db5c2c3c14c9e076959a84e05c6d917f4 (patch)
tree73e61b8040ae81de2a5108d54dd93bf8dba581ae /eth/protocol.go
parentfda49f2b5216c7d5655d19efe54651593874adf8 (diff)
parent73c355591fe0279334675c555b6d614aa25b6781 (diff)
downloaddexon-5f341e5db5c2c3c14c9e076959a84e05c6d917f4.tar
dexon-5f341e5db5c2c3c14c9e076959a84e05c6d917f4.tar.gz
dexon-5f341e5db5c2c3c14c9e076959a84e05c6d917f4.tar.bz2
dexon-5f341e5db5c2c3c14c9e076959a84e05c6d917f4.tar.lz
dexon-5f341e5db5c2c3c14c9e076959a84e05c6d917f4.tar.xz
dexon-5f341e5db5c2c3c14c9e076959a84e05c6d917f4.tar.zst
dexon-5f341e5db5c2c3c14c9e076959a84e05c6d917f4.zip
Merge pull request #1212 from fjl/p2p-eth-block-timeout
eth, p2p: improve write timeouts and behaviour under load
Diffstat (limited to 'eth/protocol.go')
-rw-r--r--eth/protocol.go6
1 files changed, 4 insertions, 2 deletions
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
}