According to a recent report from WABetaInfo, a new feature is being tested as part of the WhatsApp for Android beta. With this, there will be a new ‘Mute Unknown Callers’ option, which will prevent you from receiving needless and frequent calls from unknown people, which are often spam.
Once live, it will be available in the settings, and you will only need to enable the toggle for it to begin working its magic. You will, however, continue to see missed calls in the call list and notifications so that you can keep track of the calls you receive. You can see a screenshot of the feature below.