Rearranging the state.

This commit is contained in:
Alexander Blair
2017-02-15 17:19:31 -08:00
parent 5cc1e051b9
commit b64307deef
+1 -1
View File
@@ -233,7 +233,7 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer
this.error = "Too many options in the login field"; this.error = "Too many options in the login field";
this.valid_miner = false; this.valid_miner = false;
} }
if (typeof(addressSplit[1]) !== 'undefined' && addressSplit[1].length === 64 && addressSplit[1].test(hexMatch)) { if (typeof(addressSplit[1]) !== 'undefined' && addressSplit[1].length === 64 && hexMatch.test(addressSplit[1])) {
this.paymentID = addressSplit[1]; this.paymentID = addressSplit[1];
this.payout = this.address + "." + this.paymentID; this.payout = this.address + "." + this.paymentID;
} else if (addressSplit[1] !== 'undefined') { } else if (addressSplit[1] !== 'undefined') {