Skip to content

Commit

Permalink
[outputs] refs #302 - Solve bug
Browse files Browse the repository at this point in the history
Returns if call to ScanUnspentOutputs fails
  • Loading branch information
AntiD2ta committed Dec 26, 2019
1 parent b3d7f9c commit d930ba1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/models/modelWallets.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ func (m *ModelWallets) loadModel() {
for addresses.Next() {
a := addresses.Value()
outputs := a.GetCryptoAccount().ScanUnspentOutputs()
if outputs == nil {
return
}
mo := NewModelOutputs(nil)
mo.SetAddress(a.String())
qOutputs := make([]*QOutput, 0)
Expand Down

0 comments on commit d930ba1

Please sign in to comment.