Update paymentProcessor.js

Do not validate zAddress when shielding is not required.
This commit is contained in:
hellcatz 2017-04-12 11:47:51 -07:00 committed by GitHub
parent 53852d6f0f
commit 16aff2d0de
1 changed files with 6 additions and 2 deletions

View File

@ -159,8 +159,12 @@ function SetupForPool(logger, poolOptions, setupFinished){
setupFinished(true);
}
async.parallel([validateAddress, validateTAddress, validateZAddress, getBalance], asyncComplete);
if (requireShielding === true) {
async.parallel([validateAddress, validateTAddress, validateZAddress, getBalance], asyncComplete);
} else {
async.parallel([validateAddress, validateTAddress, getBalance], asyncComplete);
}
//get t_address coinbalance
function listUnspent (addr, notAddr, minConf, displayBool, callback) {
if (addr !== null) {