Skip to content

Commit

Permalink
Merge pull request #3 from longzai1988/master
Browse files Browse the repository at this point in the history
minor bug
  • Loading branch information
Alex Jones committed May 27, 2015
2 parents b8df055 + af9c13f commit a9f3614
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions jay.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
var Jay = {};

Jay.commonNodes = ["69.163.40.132", "jnxt.org","nxt.noip.me","23.88.59.40","162.243.122.251"];
Jay.commonTestnetNodes = ["localhost"];

Jay.msTimeout = 1000;

Expand Down Expand Up @@ -162,7 +163,12 @@ var Jay = {};
for(var a=0;a<3;a++)
{
Jay.queue(Jay.bestNodes[a], parameters, function(resp, status, xhr) {
vld.push(resp);
try {
vld.push(JSON.parse(resp));
}
catch (err) {
onFailure({ "error": "Unable to Validate" }, "error", xhr);
}
if(vld.length == 3)
{
// compare
Expand Down Expand Up @@ -195,7 +201,6 @@ var Jay = {};
// search for all things
o1.requestProcessingTime = 0;
o2.requestProcessingTime = 0;
alert(params);
return objectEquals(o1, o2);
}
else
Expand Down Expand Up @@ -492,7 +497,7 @@ var Jay = {};
return Jay.createTrf(Jay.types.messaging, Jay.subtypes.aliasSell, recipient, 0, 1, attachment, appendages);
}

Jay.buyAlias = function(alias, amount, seller, appendages)
Jay.buyAlias = function(alias, amount, recipient, appendages)
{
var attachment = [];
attachment.push(Jay.transactionVersion);
Expand Down

0 comments on commit a9f3614

Please sign in to comment.