Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Log.difference behaviour #230

@latenssi

Description

@latenssi

Referring to this line of code: log.js#L581

When this is using a._headsIndex I get an empty log back when comparing 2 logs with same head but the other one having a longer history (more entries loaded from local filesystem). If I monkeypatch (as seen here) this to use a._entryIndex I get back what I would l logically expect (log with entries which are in the other but not in the other).

@thiagodelgado111 Would you consider the change I made a sound one and should we implement it in ipfs-log or am I missing something?

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