Merge pull request #59 from wpaulino/close-account-panic-fix

rpc: check nil funds destination in CloseAccountRequest
This commit is contained in:
Oliver Gugger 2020-08-28 12:31:05 +02:00 committed by GitHub
commit 280d0e041d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -824,6 +824,9 @@ func (s *rpcServer) CloseAccount(ctx context.Context,
}
feeExpr = account.OutputsWithImplicitFee(outputs)
case nil:
return nil, errors.New("a funds destination must be specified")
}
dbOrders, err := s.server.db.GetOrders()