Skip to content
Snippets Groups Projects
Commit 89617f7e authored by Mahdi Yari's avatar Mahdi Yari
Browse files

Merge branch 'remove-3s-wait-after-broadcast' into 'master'

remove transaction status check

See merge request hive/hive-js!43
parents 21be0580 45b38f83
No related branches found
No related tags found
No related merge requests found
{ {
"name": "@hiveio/hive-js", "name": "@hiveio/hive-js",
"version": "1.1.0-beta.1", "version": "1.1.0-beta.2",
"description": "Hive.js the JavaScript API for Hive blockchain", "description": "Hive.js the JavaScript API for Hive blockchain",
"main": "lib/index.js", "main": "lib/index.js",
"scripts": { "scripts": {
......
...@@ -59,13 +59,7 @@ hiveBroadcast.send = function hiveBroadcast$send(tx, privKeys, callback) { ...@@ -59,13 +59,7 @@ hiveBroadcast.send = function hiveBroadcast$send(tx, privKeys, callback) {
return hiveApi.broadcastTransactionAsync( return hiveApi.broadcastTransactionAsync(
signedTransaction signedTransaction
).then((result) => { ).then((result) => {
const expiration = signedTransaction.expiration return Object.assign({ id: trxId }, result, signedTransaction);
return getTransactionStatus(trxId, expiration).then(res => {
const obj = { id: trxId, status: res.status }
if (res.block_num) {
obj.block_num = res.block_num
}
return Object.assign(obj, result, signedTransaction);
}) })
}); });
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment