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

Description
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
- Perform a restoration
- During restoration, query a given address that has been used by an already discovered tx
- Observe the "used" field
Expected behavior
used should be true
Actual behavior
used is false.
PR
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.