commit
34b622a248
@ -48,10 +48,10 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
ClientIdentifier = "Geth"
|
ClientIdentifier = "Geth"
|
||||||
Version = "1.3.4"
|
Version = "1.3.5"
|
||||||
VersionMajor = 1
|
VersionMajor = 1
|
||||||
VersionMinor = 3
|
VersionMinor = 3
|
||||||
VersionPatch = 4
|
VersionPatch = 5
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -491,7 +491,11 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
|
|||||||
uncles[i] = body.Uncles
|
uncles[i] = body.Uncles
|
||||||
}
|
}
|
||||||
// Filter out any explicitly requested bodies, deliver the rest to the downloader
|
// Filter out any explicitly requested bodies, deliver the rest to the downloader
|
||||||
if trasactions, uncles := pm.fetcher.FilterBodies(trasactions, uncles, time.Now()); len(trasactions) > 0 || len(uncles) > 0 {
|
filter := len(trasactions) > 0 || len(uncles) > 0
|
||||||
|
if filter {
|
||||||
|
trasactions, uncles = pm.fetcher.FilterBodies(trasactions, uncles, time.Now())
|
||||||
|
}
|
||||||
|
if len(trasactions) > 0 || len(uncles) > 0 || !filter {
|
||||||
err := pm.downloader.DeliverBodies(p.id, trasactions, uncles)
|
err := pm.downloader.DeliverBodies(p.id, trasactions, uncles)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.V(logger.Debug).Infoln(err)
|
glog.V(logger.Debug).Infoln(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user