fixing broadcastTx not been asynchronized call
This commit is contained in:
parent
ed59eeeb65
commit
b1c6d8c153
@ -5070,8 +5070,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 () {
|
||||
@ -5082,7 +5081,6 @@
|
||||
reject(request.responseText);
|
||||
}
|
||||
request.send(params);
|
||||
return result;
|
||||
}
|
||||
})
|
||||
},
|
||||
@ -5837,4 +5835,4 @@
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user