diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-09-02 19:44:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-02 19:44:23 +0800 |
commit | a42b7355f40fbc58893ca074db818d461083912c (patch) | |
tree | 1217ca54edf4fc72734dc00bf09d4a827106bd82 /eth/protocol.go | |
parent | 49227f65ff5ae42d47dfb65eaf88d38790543b06 (diff) | |
parent | b4a52513915d5a39ac055fc38cafed70098eb698 (diff) | |
download | dexon-a42b7355f40fbc58893ca074db818d461083912c.tar dexon-a42b7355f40fbc58893ca074db818d461083912c.tar.gz dexon-a42b7355f40fbc58893ca074db818d461083912c.tar.bz2 dexon-a42b7355f40fbc58893ca074db818d461083912c.tar.lz dexon-a42b7355f40fbc58893ca074db818d461083912c.tar.xz dexon-a42b7355f40fbc58893ca074db818d461083912c.tar.zst dexon-a42b7355f40fbc58893ca074db818d461083912c.zip |
Merge pull request #2742 from karalabe/tx-spam-protection
Transaction pool optimizations
Diffstat (limited to 'eth/protocol.go')
-rw-r--r-- | eth/protocol.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eth/protocol.go b/eth/protocol.go index 69b3be578..3f65c204b 100644 --- a/eth/protocol.go +++ b/eth/protocol.go @@ -97,12 +97,12 @@ var errorToString = map[int]string{ } type txPool interface { - // AddTransactions should add the given transactions to the pool. - AddTransactions([]*types.Transaction) + // AddBatch should add the given transactions to the pool. + AddBatch([]*types.Transaction) - // GetTransactions should return pending transactions. + // Pending should return pending transactions. // The slice should be modifiable by the caller. - GetTransactions() types.Transactions + Pending() map[common.Address]types.Transactions } // statusData is the network packet for the status message. |