aboutsummaryrefslogtreecommitdiffstats
path: root/eth/sync.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-07-01 23:16:44 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-07-01 23:16:44 +0800
commit5caff3bc247cdd71f2342093d276041afe898ab3 (patch)
treea771298f17987eba6fb05d7bac1e772121296856 /eth/sync.go
parent507869bff10adab3d4f183aeaf3ef31715041046 (diff)
parentd6f2c0a76f6635ebeb245815c5f686c545ed527d (diff)
downloaddexon-5caff3bc247cdd71f2342093d276041afe898ab3.tar
dexon-5caff3bc247cdd71f2342093d276041afe898ab3.tar.gz
dexon-5caff3bc247cdd71f2342093d276041afe898ab3.tar.bz2
dexon-5caff3bc247cdd71f2342093d276041afe898ab3.tar.lz
dexon-5caff3bc247cdd71f2342093d276041afe898ab3.tar.xz
dexon-5caff3bc247cdd71f2342093d276041afe898ab3.tar.zst
dexon-5caff3bc247cdd71f2342093d276041afe898ab3.zip
Merge pull request #1351 from karalabe/eth61
Implement eth/61
Diffstat (limited to 'eth/sync.go')
-rw-r--r--eth/sync.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/eth/sync.go b/eth/sync.go
index 82abb725f..47fd7363e 100644
--- a/eth/sync.go
+++ b/eth/sync.go
@@ -20,14 +20,6 @@ const (
txsyncPackSize = 100 * 1024
)
-// blockAnnounce is the hash notification of the availability of a new block in
-// the network.
-type blockAnnounce struct {
- hash common.Hash
- peer *peer
- time time.Time
-}
-
type txsync struct {
p *peer
txs []*types.Transaction
@@ -75,7 +67,7 @@ func (pm *ProtocolManager) txsyncLoop() {
// Send the pack in the background.
glog.V(logger.Detail).Infof("%v: sending %d transactions (%v)", s.p.Peer, len(pack.txs), size)
sending = true
- go func() { done <- pack.p.sendTransactions(pack.txs) }()
+ go func() { done <- pack.p.SendTransactions(pack.txs) }()
}
// pick chooses the next pending sync.