Skip to content

GetBlockHeaders [reverse = true, skip = 0, origin type = hash] duplicates genesis in response #2076

Closed
@Nashatyrev

Description

@Nashatyrev

E.g. when sending GetBlockHeaders(Origin = blockHash, Amount = 1000, Skip = 1, Reverse = true) (where blockHash is the block #4) I'm getting block headers #4, #2, #0
When sending with Skip = 0 getting headers #4, #3, #2, #1, #0, #0 (two zero blocks at the end)
The problem seems to be in that line:
https://github.com/ethereum/go-ethereum/blob/master/eth/handler.go#L421

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions