Skip to content

Peer synchronization requires too much trust #39

@xloem

Description

@xloem

It looks like the synchronization code picks the peer which gives the highest block height, and then tries to synchronize only from them.

This looks very vulnerable to a misbehaving peer which has a higher block height but will not synchronize to that height. Instead the block tree should be built from all connected peers, and a peer not judged as certainly providing the highest height until it has actually provided valid blocks at that height.

See https://github.com/Qoracoin/Qora/blob/master/Qora/src/controller/Controller.java#L693

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions