Open alon-e opened 6 years ago
Hello, is there a possibility to overcome the issue, considering the private IOTA network and thus, empty DB. Any workaround?
I am running IOTA locally and hitting this issue. Is there a work around?
Just to understand the priority of the issue from your perspectives @gcameo and @mkhudyakov.
Why do you care about the balance of a node with an empty db?
Bug description
when running a node with an empty database, calls to
getBalances
fail with the following error:this is due to an edge case in: https://github.com/iotaledger/iri/blob/dev/src/main/java/com/iota/iri/service/API.java#L886 pointing
tip
to999...
and then not finding it in the DB: https://github.com/iotaledger/iri/blob/dev/src/main/java/com/iota/iri/service/API.java#L906Hardware Spec
N/A
Steps To Reproduce
Expected behaviour
no failure, if the address is in the snapshot the value should appear, else 0.
Actual behavior
Errors