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

iter_used_addresses could be snapshot-proof if it looked at balances first, then transactions #175

@lunfardo314

Description

@lunfardo314

get_inputs behaves very differently depending on stop parameter (is it provided or not). That is due to different ways how addresses are generated and iterated. For example right after snapshot that would give two different results.

Suggestion: iter_used_addresses to iterate until encounters first address with balance=0 and not spent as per were_addresses_spent_from as opposed to current criteria of first address without transactions.
In standard cases that will give wallet's total balance and would be similar to result with big enough interval of start and stop

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions