Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

Address Reported as Unused During Restoration #93

@KtorZ

Description

@KtorZ

Context

Commit Hash / Release Tag input-output-hk/cardano-sl@release/2.0.0
Operating System (Windows, OSX, Linux)

When we ask for addresses during restoration, even after a tx that uses an address is discovered, the address is still reported as unused. This happens because currently only partial checkpoints are queried and historical checkpoint are ignored.

Steps to Reproduce

  1. Perform a restoration
  2. During restoration, query a given address that has been used by an already discovered tx
  3. Observe the "used" field

Expected behavior

used should be true

Actual behavior

used is false.


PR

Number Base
input-output-hk/cardano-sl#3742 develop

Retrospective

In addition, an "optimistic marking" has been implemented: when we discover a utxo at the begining of restoration, we mark the relevant addresses as used. This means that some addresses are reported as used, even before the tx that uses them is discovered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions