Skip to content

Commit

Permalink
Merge f66020b into a8863fa
Browse files Browse the repository at this point in the history
  • Loading branch information
elvis88 committed May 29, 2019
2 parents a8863fa + f66020b commit 3999dcd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion consensus/dpos/dpos.go
Expand Up @@ -101,7 +101,11 @@ func (s *stateDB) GetBalanceByTime(name string, timestamp uint64) (*big.Int, err
if err != nil {
return big.NewInt(0), err
}
return accountDB.GetBalanceByTime(common.StrToName(name), s.assetid, 1, timestamp)
balance, err := accountDB.GetBalanceByTime(common.StrToName(name), s.assetid, 1, timestamp)
if err == accountmanager.ErrAccountNotExist {
return big.NewInt(0), nil
}
return balance, err
}

// Genesis dpos genesis store
Expand Down

0 comments on commit 3999dcd

Please sign in to comment.