rpc: do not return error if account is not found for getunclaimed
call
Follow the reference behaviour.
This commit is contained in:
parent
580f1787b9
commit
233aa94bba
1 changed files with 1 additions and 1 deletions
|
@ -1397,7 +1397,7 @@ func (s *Server) getUnclaimed(ps request.Params) (interface{}, *response.Error)
|
||||||
|
|
||||||
acc := s.chain.GetAccountState(u)
|
acc := s.chain.GetAccountState(u)
|
||||||
if acc == nil {
|
if acc == nil {
|
||||||
return nil, response.NewInternalServerError("unknown account", nil)
|
return &result.Unclaimed{}, nil
|
||||||
}
|
}
|
||||||
res, errRes := result.NewUnclaimed(acc, s.chain)
|
res, errRes := result.NewUnclaimed(acc, s.chain)
|
||||||
if errRes != nil {
|
if errRes != nil {
|
||||||
|
|
Loading…
Reference in a new issue