aboutsummaryrefslogtreecommitdiffstats
path: root/eth/protocol.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-10 03:12:25 +0800
committerobscuren <geffobscura@gmail.com>2015-06-10 03:12:25 +0800
commitbac9a94ddf20dc530966cbf6cd384aaf94aedc77 (patch)
tree0ced967e60315698cc5056a984d7678c417bc1ce /eth/protocol.go
parent0e703d92ac9df61e2ededa8c895c70ded101a607 (diff)
parent14994fa21bf6f05554ff370d41005d06b68d20a5 (diff)
downloaddexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar
dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.gz
dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.bz2
dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.lz
dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.xz
dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.zst
dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.zip
Merge branch 'release/0.9.28'
Diffstat (limited to 'eth/protocol.go')
-rw-r--r--eth/protocol.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/eth/protocol.go b/eth/protocol.go
index 948051ed1..57805d9bd 100644
--- a/eth/protocol.go
+++ b/eth/protocol.go
@@ -17,7 +17,7 @@ const (
// eth protocol message codes
const (
StatusMsg = iota
- GetTxMsg // unused
+ NewBlockHashesMsg
TxMsg
GetBlockHashesMsg
BlockHashesMsg
@@ -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
}