Skip to content

Commit 6c672a5

Browse files
karalabeobscuren
authored andcommitted
[release/1.4.11] eth, eth/downloader: don't forward the DAO challenge header
(cherry picked from commit 071af57)
1 parent 48709d5 commit 6c672a5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

eth/downloader/downloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ func (d *Downloader) fetchHeight(p *peer) (*types.Header, error) {
542542
// In the rare scenario when we ended up on a long reorganisation (i.e. none of
543543
// the head links match), we do a binary search to find the common ancestor.
544544
func (d *Downloader) findAncestor(p *peer, height uint64) (uint64, error) {
545-
glog.V(logger.Debug).Infof("%v: looking for common ancestor", p)
545+
glog.V(logger.Debug).Infof("%v: looking for common ancestor (remote height %d)", p, height)
546546

547547
// Figure out the valid ancestor range to prevent rewrite attacks
548548
floor, ceil := int64(-1), d.headHeader().Number.Uint64()

eth/handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
434434
return err
435435
}
436436
glog.V(logger.Debug).Infof("%v: verified to be on the same side of the DAO fork", p)
437+
return nil
437438
}
438439
// Irrelevant of the fork checks, send the header to the fetcher just in case
439440
headers = pm.fetcher.FilterHeaders(headers, time.Now())

0 commit comments

Comments
 (0)