fix : broadcastTx not been asynchronous

This commit is contained in:
Sai Raj 2019-10-13 03:07:40 +05:30 committed by GitHub
parent 77856eda07
commit 6373143908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5078,8 +5078,7 @@
reject("Empty Signature");
else {
var params = `{"rawtx":"${signedTxHash}"}`;
var result;
request.open('POST', url, false);
request.open('POST', url, true);
//Send the proper header information along with the request
request.setRequestHeader('Content-type', 'application/json');
request.onload = function () {
@ -5090,7 +5089,6 @@
reject(request.responseText);
}
request.send(params);
return result;
}
})
},