forked from TrueCloudLab/neoneo-go
Merge pull request #2176 from nspcc-dev/rpc/fix-getunclaimed
rpc: do not return error if account is not found for `getunclaimed` call
This commit is contained in:
commit
56c20ed817
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)
|
||||
if acc == nil {
|
||||
return nil, response.NewInternalServerError("unknown account", nil)
|
||||
return &result.Unclaimed{}, nil
|
||||
}
|
||||
res, errRes := result.NewUnclaimed(acc, s.chain)
|
||||
if errRes != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue