create account

Everything can be faster on Hive - hive-js & dhive new changes by mahdiyari

View this thread on: hive.blogpeakd.comecency.com
· @mahdiyari · (edited)
$312.15
Everything can be faster on Hive - hive-js & dhive new changes
<center>![alien-hive.jpg](https://files.peakd.com/file/peakd-hive/mahdiyari/23zS3SZnJwHE4qThdmvWRdRpLARpcFMm1Vq8LfDLqscHen53JFeNqq7EEGVfvhd2xcpTo.jpg)</center>

Explaining why there were problems with RPC nodes and what was the problem and why you must update your application.

### Target audience
I explained everything as simple as I could. The main call is for the app owners to update their applications with the updated libraries.

After the recent timeout problems, it was necessary to take these steps and update the libraries.

I updated 2 major JS libraries, hive-js and dhive, to help resolve the timeout problems.

### The "call" method
The "call" method was a way of talking to hived (the hive blockchain's application). This method got deprecated and removed from hived with the appbase update (HF19?).

So what has happened since then? Well, we were still using the "call" method for most of our applications. But the "call" method is not known to hived anymore, so the requests have to go through a proxy called "jussi". Jussi is installed in front of all the public RPC nodes.

Jussi takes the "call" method and translates it into the correct format then sends it to the hived. The problem is, you are adding an extra step for the API requests and it slows them down.

An example of the "call" method:
```
{"id":0,"jsonrpc":"2.0","method":"call","params":["database_api","get_dynamic_global_properties",[]]}
```
Notice `"method":"call"`. So jussi takes that and translates it into the new format:
```
{"id":0,"jsonrpc":"2.0","method":"condenser_api.get_dynamic_global_properties","params": []}
```
See what happened? The user thinks the call was going to `database_api` but actually, jussi translates it into `condenser_api`.

To be honest, this is not the best way of doing things. The idea behind jussi was good but implementation was a mess.

***
### What is the "new" format?
The "appbase" style calls are the calls that are supported directly by hived and don't need a translation.

It's not new and has been there for years but we didn't bother updating our libraries to use the supported methods.

With switching to the appbase calls, every request to the RPC nodes becomes faster.


This is the first change to both hive-js and dhive libraries. They both were using the deprecated "call" method.
***
### You might not need jussi
Till now, hive-js wouldn't work with hived nodes until you added jussi in front of them. But with this update, hive-js will work with hived nodes. But remember, you will still need jussi for the hivemind calls. Also, there might be caching benefits in using jussi.
***
### Broadcasting transactions
This is the important part. There are two methods for broadcasting a transaction.
1. `broadcast_transaction_synchronous`
2. `broadcast_transaction`

The first method sends the transaction to the RPC node, the RPC node validates the transaction, then waits for the transaction to be included in a block, then sends back a response including the transaction id and block number.

The second method sends the transaction to the RPC node, the RPC node validates the transaction, then sends an empty success response back.

In the second method, the library has to generate the transaction id locally. Which is way too much faster. In this method, the only way for a transaction to fail is expiration or micro forking maybe. So in most cases, it's good enough.

Of course, hive-js and dhive both were using the first method. When many people connect to the RPC node and wait there, it becomes problematic. The best way for handling huge traffic is to release a connection as soon as possible so other connections can be made.

Both libraries now use the second method for broadcasting transactions. You may already notice its huge impact on the speed of your votes and comments.

Peakd is already updated. Keychain is waiting for google approval and the mobile version will be soon updated. Some apps are catching up like Hivesigner, and Ecency. There was a problem updating hive.blog and that will be also updated.

***
### Why bother updating
- Everything becomes faster for the end-user
- RPC nodes don't suffer overloading
- Apps become future proof
- It's easy as running a command

***
### How to update your apps
**hvie-js v2.0.1** - [Release notes](https://gitlab.syncad.com/hive/hive-js/-/releases)
Used in hive.blog, peakd, keychain, and many other apps.
```
npm install @hiveio/hive-js@latest --save
```
The minified JS for browsers:
```
https://cdn.jsdelivr.net/npm/@hiveio/hive-js@2/dist/hive.min.js
```
***
**dhive v1.0.0** - [Release notes](https://gitlab.syncad.com/hive/dhive/-/releases)
Used in ecency (mobile & web) and many other apps.
```
npm install @hiveio/dhive@latest --save
```
The minified JS for browsers:
```
https://cdn.jsdelivr.net/npm/@hiveio/dhive@1/dist/dhive.js
```
***
**hive-tx v4.0.0** - [Release notes](https://github.com/mahdiyari/hive-tx-js/releases)
Used in keychain mobile and other apps.

hive-tx already is using the appbase methods and there is a function called `.broadcastNoResult()` for the fast transaction broadcasting. But I did update hive-tx so now the `.broadcast()` function is also updated.
```
npm install hive-tx@latest --save
```
The minified JS for browsers:
```
https://cdn.jsdelivr.net/npm/hive-tx@4/dist/hive-tx.min.js
```


***
Note:
@foxon and @emrebeyler confirmed that `beem` doesn't need an update.
***

### Scaling problems?
The recent problem doesn't seem to be a scaling problem. It's more related to the libraries and apps using the deprecated methods.

The recent library changes seem to be solving most of the problems. Although there are investigations still going on by @blocktrades regarding the timeout problems.

Hive blockchain in theory can handle much more activity than this. Some say like 1,000 transactions per second. But there might be minor problems because those scenarios are not actually tested.
***

### Final words
I'm sure all the problems will be solved and we will see much better growth. I'm bullish on Hive and will continue my contributions as far as I can.

Thanks to the other devs who updated their applications on time to help with the problem.

***
<sub>Image source: pixabay.com</sub>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 617 others
👎  ,
properties (23)
authormahdiyari
permlinkeverything-can-be-faster-on-hive-hive-js-and-dhive-new-changes
categoryhive-139531
json_metadata{"app":"peakd/2021.07.5","format":"markdown","tags":["dev","hivedev","hive-js","dhive","hive-tx"],"users":["hiveio","latest","foxon","emrebeyler","blocktrades"],"image":["https://files.peakd.com/file/peakd-hive/mahdiyari/23zS3SZnJwHE4qThdmvWRdRpLARpcFMm1Vq8LfDLqscHen53JFeNqq7EEGVfvhd2xcpTo.jpg"]}
created2021-08-02 07:07:03
last_update2021-08-02 07:19:18
depth0
children31
last_payout2021-08-09 07:07:03
cashout_time1969-12-31 23:59:59
total_payout_value156.146 HBD
curator_payout_value156.008 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length6,238
author_reputation199,858,416,089,067
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,272,342
net_rshares469,655,880,803,809
author_curate_reward""
vote details (683)
@burnoutawesome ·
$0.23
Good job man!
👍  
properties (23)
authorburnoutawesome
permlinkre-mahdiyari-qx7hel
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 09:37:36
last_update2021-08-02 09:37:36
depth1
children0
last_payout2021-08-09 09:37:36
cashout_time1969-12-31 23:59:59
total_payout_value0.114 HBD
curator_payout_value0.115 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length13
author_reputation36,922,224,920,046
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,274,030
net_rshares346,930,151,301
author_curate_reward""
vote details (1)
@carlosepc ·
I feel a little relieved but also worried, reading this after 3 years of the posting; because I'm starting to study the apis and went to https://developers.hive.io. 
The tutorials and repos there are using the deprecated methos. And I'm afraid that new developers like me will likely come and take those as the recommendation.

Is there a way to update those tutorials and docs for developers? 
Also, have there been any changes in the API since this post?
properties (22)
authorcarlosepc
permlinkre-mahdiyari-20241127t182631498z
categoryhive-139531
json_metadata{"tags":["dev","hivedev","hive-js","dhive","hive-tx"],"app":"ecency/4.0.2-vision","format":"markdown+html"}
created2024-11-27 23:26:42
last_update2024-11-27 23:26:42
depth1
children1
last_payout2024-12-04 23:26:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length456
author_reputation907,627,056,565
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id138,768,508
net_rshares0
@mahdiyari ·
Things should work unless stated otherwise somewhere else.
properties (22)
authormahdiyari
permlinkre-carlosepc-snnv53
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2024.11.2","image":[],"users":[]}
created2024-11-28 12:39:06
last_update2024-11-28 12:39:06
depth2
children0
last_payout2024-12-05 12:39:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length58
author_reputation199,858,416,089,067
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id138,778,045
net_rshares0
@cherepin0512 ·
$0.27
In general terms, everything is clear. Technical problems are being solved. This is good news. Everyone needs it. Thank you very much for your work.
👍  ,
properties (23)
authorcherepin0512
permlinkre-mahdiyari-qx7aw5
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 07:16:54
last_update2021-08-02 07:16:54
depth1
children1
last_payout2021-08-09 07:16:54
cashout_time1969-12-31 23:59:59
total_payout_value0.136 HBD
curator_payout_value0.135 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length148
author_reputation4,175,564,469,848
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,272,569
net_rshares410,221,595,568
author_curate_reward""
vote details (2)
@dynamichivers · (edited)
$0.24
@cherepin0512 you rock bro, you are correct. Everything is starting to flow better again. 

![untitled.gif](https://media.tenor.com/images/b99602baa563d129f0fd57fd62de8afc/tenor.gif)

I am sure this informative post from @mahdiyari will benefit others and bring peace of mind to many who have been frustrated.

Thank you for being a solid, constant, and just overall amazing person on Hive, Mahdiyari!

![untitled.gif](https://media.tenor.com/images/98529b250a7e0f243668a2c98b5fb725/tenor.gif)
👍  
properties (23)
authordynamichivers
permlinkre-cherepin0512-qx7uee
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 14:18:18
last_update2021-08-02 14:19:21
depth2
children0
last_payout2021-08-09 14:18:18
cashout_time1969-12-31 23:59:59
total_payout_value0.118 HBD
curator_payout_value0.118 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length494
author_reputation12,535,535,231,561
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,278,212
net_rshares352,181,353,987
author_curate_reward""
vote details (1)
@donchate ·
Just want to note that for any existing applications a simple npm update is probably not going to pick up the latest version because of the major version change. Need to do it manually.

!LUV
properties (22)
authordonchate
permlinkre-mahdiyari-qxk5gz
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-09 05:48:39
last_update2021-08-09 05:48:39
depth1
children1
last_payout2021-08-16 05:48:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length191
author_reputation956,784,034,700
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,415,053
net_rshares0
@luvshares ·
<div class='pull-right'><center><sup><small><small><><</small></small></a></sup></center>
    <p><a href="https://ichthys.netlify.app" style="text-decoration:none"><><</a></p></div>
    
<div class='pull-right'><center><sup>LUV</sup></center>
    <p><a href="https://peakd.com/@luvshares"><img src="https://files.peakd.com/file/peakd-hive/crrdlx/AKU7oyCXxGwYyudB42kJ7JtoZ63bdeHvm4icoT9xdGNxA4i4BwudGyPvTQrEwPd.gif"></a></p></div>
    
<div class='pull-right'><center><sup>Connect</sup></center>
    <p><a href="https://discord.gg/K5GvNhcPqR"><img src="https://files.peakd.com/file/peakd-hive/crrdlx/23wfrFwbW2VmsmZxJXyNEKYXt8mvmEP5zenbPZFX5T6yxcF65vCp7RbNpNhLgFZiM62G1.png"></a></p></div>
    
<div class='pull-right'><center><sup>Trade</sup></center>
    <p><a href='https://tribaldex.com/trade/LUV'><img src="https://files.peakd.com/file/peakd-hive/crrdlx/AKJ1ytK1G4qgB6fMNY9iW9yL1E7bY4ooefHFwtMVKoKnyXG1EsjxrcrTFGFAbhw.png"></a></p></div>
    
<center><br> <p>@mahdiyari, you've been given LUV from @donchate.</p> <p>Check the LUV in your H-E <a href="https://hive-engine.com/">wallet</a>. <sub>(1/1)</sub></p> </center><div></div>
properties (22)
authorluvshares
permlinkre-re-mahdiyari-qxk5gz-20210809t054945z
categoryhive-139531
json_metadata"{"app": "beem/0.24.26"}"
created2021-08-09 05:49:45
last_update2021-08-09 05:49:45
depth2
children0
last_payout2021-08-16 05:49:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,134
author_reputation5,651,102,754,153
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,415,064
net_rshares0
@foxon ·
$0.23
Thank you!

Does this mean @splinterlands can update their DHive and we can get our public nodes back now?
👍  
properties (23)
authorfoxon
permlinkre-mahdiyari-qx7yfq
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 15:44:33
last_update2021-08-02 15:44:33
depth1
children1
last_payout2021-08-09 15:44:33
cashout_time1969-12-31 23:59:59
total_payout_value0.116 HBD
curator_payout_value0.117 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length106
author_reputation9,226,931,685,882
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,279,617
net_rshares348,831,028,743
author_curate_reward""
vote details (1)
@mahdiyari ·
@yabapmatt promised to work on it. Might take a few days.
properties (22)
authormahdiyari
permlinkre-foxon-qx7z6d
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 16:01:27
last_update2021-08-02 16:01:27
depth2
children0
last_payout2021-08-09 16:01:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length57
author_reputation199,858,416,089,067
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,279,911
net_rshares0
@gtg ·
$0.20
Thank you.

<sup>// By the way: it's one of those things that were supposed to be done by ~~ned~~ (may the Sun shine in his face) back in 2018. Well not done.</sup>
👍  ,
properties (23)
authorgtg
permlinkqx93it
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2021-08-03 06:32:54
last_update2021-08-03 06:32:54
depth1
children0
last_payout2021-08-10 06:32:54
cashout_time1969-12-31 23:59:59
total_payout_value0.102 HBD
curator_payout_value0.101 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length164
author_reputation461,775,164,998,463
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,291,257
net_rshares303,909,442,332
author_curate_reward""
vote details (2)
@hivebuzz ·
Congratulations @mahdiyari! Your post has been a top performer on the Hive blockchain and you have been rewarded with the following badge:

<table><tr><td><img src="https://images.hive.blog/60x60/http://hivebuzz.me/badges/toppayoutday.png"></td><td>Post with the highest payout of the day.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@mahdiyari) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/hivebuzz/@hivebuzz/pud-202108-feedback"><img src="https://images.hive.blog/64x128/https://i.imgur.com/zHjYI1k.jpg"></a></td><td><a href="/hivebuzz/@hivebuzz/pud-202108-feedback">Feedback from the August 1st Hive Power Up Day</a></td></tr></table>
properties (22)
authorhivebuzz
permlinkhivebuzz-notify-mahdiyari-20210803t012944
categoryhive-139531
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2021-08-03 01:29:45
last_update2021-08-03 01:29:45
depth1
children0
last_payout2021-08-10 01:29:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length895
author_reputation369,202,597,441,110
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,288,008
net_rshares0
@hivetrending ·
$0.23
Thank you for the upgrades! I've reviewed all of my apps and made the corresponding upgrades for hive-js and hive-tx
👍  
properties (23)
authorhivetrending
permlinkre-mahdiyari-qx7tfa
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 13:57:09
last_update2021-08-02 13:57:09
depth1
children0
last_payout2021-08-09 13:57:09
cashout_time1969-12-31 23:59:59
total_payout_value0.116 HBD
curator_payout_value0.117 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length116
author_reputation73,021,329,861,852
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,277,831
net_rshares348,070,290,471
author_curate_reward""
vote details (1)
@howo ·
$0.24
Thanks a lot for your work ! It's actually quite insane how much it improves UX
👍  ,
properties (23)
authorhowo
permlinkre-mahdiyari-qx7svz
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 13:45:36
last_update2021-08-02 13:45:36
depth1
children0
last_payout2021-08-09 13:45:36
cashout_time1969-12-31 23:59:59
total_payout_value0.118 HBD
curator_payout_value0.118 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length79
author_reputation511,962,302,102,641
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,277,668
net_rshares354,195,422,451
author_curate_reward""
vote details (2)
@joeyarnoldvn ·
This might be off-topic, but I wanted to ask you this question. Is it true that 100% of an upvote goes to the voter, the curator, after 5 minutes on Hive? Back on Steemit, it was set at 15 or 30 minutes, something like that. I recently read on [Quora.com](https://www.quora.com/How-does-curation-work-on-Hive-What-are-the-rules-limits?share=1) and I think other places too that it is at 5 minutes currently. I don't know but that may be the case.
properties (22)
authorjoeyarnoldvn
permlinkre-mahdiyari-202183t0503819z
categoryhive-139531
json_metadata{"tags":["dev","hivedev","hive-js","dhive","hive-tx"],"app":"ecency/3.0.18-vision","format":"markdown+html"}
created2021-08-03 07:50:03
last_update2021-08-03 07:50:03
depth1
children2
last_payout2021-08-10 07:50:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length447
author_reputation51,354,542,590,843
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,292,104
net_rshares0
@mahdiyari ·
The curation penalty was removed in HF25. Read posts by blocktrades and hiveio regarding the previous HF.
properties (22)
authormahdiyari
permlinkre-joeyarnoldvn-qx9w5q
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-03 16:51:30
last_update2021-08-03 16:51:30
depth2
children1
last_payout2021-08-10 16:51:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length105
author_reputation199,858,416,089,067
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,300,446
net_rshares0
@joeyarnoldvn ·
Thanks.
properties (22)
authorjoeyarnoldvn
permlinkre-mahdiyari-202184t05136633z
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"ecency/3.0.18-vision","format":"markdown+html"}
created2021-08-04 07:51:36
last_update2021-08-04 07:51:36
depth3
children0
last_payout2021-08-11 07:51:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length7
author_reputation51,354,542,590,843
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,313,089
net_rshares0
@mirafun ·
$0.19
Thank you for the detailed info, learned something!
In a scenario like eg.: a scheduled post. Would it make sense to still use <code>broadcast_transaction_synchronous</code> and would a success response pretty much guarantee a success or would you recommend <code>broadcast_transaction</code>, followed by eg. an attempt to retrieve the post? Or is a transaction 'guaranteed' only after its block number is less or equal to 'last_irreversible_block_num'?

On a side node, I've recently checked the various implementations of client libraries and noticed that for broadcasting transactions some library chose 'ref_block_num' equal to value of <code>'head_block_number'</code> and other library uses <code>'last_irreversible_block_num-1'</code>. Is there a difference and does it matter which block a transaction uses as a 'ref_block_num'?

I'm asking in order to comprehend how things work so I can learn what the preferred usage is.
👍  
properties (23)
authormirafun
permlinkre-mahdiyari-202182t23295060z
categoryhive-139531
json_metadata{"tags":["dev","hivedev","hive-js","dhive","hive-tx"],"app":"ecency/3.0.18-vision","format":"markdown+html"}
created2021-08-02 21:29:48
last_update2021-08-02 21:29:48
depth1
children1
last_payout2021-08-09 21:29:48
cashout_time1969-12-31 23:59:59
total_payout_value0.096 HBD
curator_payout_value0.097 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length932
author_reputation1,611,618,952,582
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,285,083
net_rshares289,483,595,155
author_curate_reward""
vote details (1)
@mahdiyari ·
The synchronous method is deprecated and most likely will be dropped soon. So use the other one. The suggested API for checking transaction status is `transaction_status_api.find_transaction`. You can find it in the devportal. developers.hive.io

Yes, when the transaction is included in a irreversible block, there is no way for that to reverse or fail.

AFAIK for `ref_block_num` it doesn't matter. It can be any recent block.
👍  
properties (23)
authormahdiyari
permlinkre-mirafun-qx8peq
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-03 01:28:06
last_update2021-08-03 01:28:06
depth2
children0
last_payout2021-08-10 01:28:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length428
author_reputation199,858,416,089,067
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,287,988
net_rshares1,202,929,335
author_curate_reward""
vote details (1)
@miriamir ·
$0.18
Good job !😍😍
👍  , ,
properties (23)
authormiriamir
permlinkre-mahdiyari-202182t23105613z
categoryhive-139531
json_metadata{"tags":["dev","hivedev","hive-js","dhive","hive-tx"],"app":"ecency/3.0.18-vision","format":"markdown+html"}
created2021-08-02 18:40:57
last_update2021-08-02 18:40:57
depth1
children0
last_payout2021-08-09 18:40:57
cashout_time1969-12-31 23:59:59
total_payout_value0.090 HBD
curator_payout_value0.091 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length12
author_reputation4,296,433,651
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,282,675
net_rshares272,872,310,416
author_curate_reward""
vote details (3)
@peakd ·
$0.23
Really appreciate your work on this update !!
👍  ,
properties (23)
authorpeakd
permlinkre-mahdiyari-qx7bu7
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 07:37:21
last_update2021-08-02 07:37:21
depth1
children4
last_payout2021-08-09 07:37:21
cashout_time1969-12-31 23:59:59
total_payout_value0.116 HBD
curator_payout_value0.116 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length45
author_reputation310,799,979,660,166
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,272,961
net_rshares351,675,991,843
author_curate_reward""
vote details (2)
@cherepin0512 ·
I also want to thank you for the program for working on the blockchain Hive, Peakd. This is a really good job. I wish you success.
properties (22)
authorcherepin0512
permlinkre-peakd-qx7dc0
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 08:09:36
last_update2021-08-02 08:09:36
depth2
children3
last_payout2021-08-09 08:09:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length130
author_reputation4,175,564,469,848
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,273,250
net_rshares0
@dynamichivers ·
Peakd has been pretty solid. The automatic node switching function helped during this time. When it did not I was able to go to **peakd settings** and effortlessly manually switch to working nodes.

Also, I see I can view who is sending me HP delegation now on peakd, so thanks for the upgrade @peakd!
properties (22)
authordynamichivers
permlinkre-cherepin0512-qx7uli
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 14:22:30
last_update2021-08-02 14:22:30
depth3
children2
last_payout2021-08-09 14:22:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length301
author_reputation12,535,535,231,561
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,278,309
net_rshares0
@poshtoken ·
https://twitter.com/Hivebull/status/1422261563789094912
<sub> The rewards earned on this comment will go directly to the person sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.</sub>
properties (22)
authorposhtoken
permlinkre-mahdiyari-everything-can-be-faster-on-hive-hive-js-and-dhive90238
categoryhive-139531
json_metadata"{"app":"Poshtoken 0.0.1"}"
created2021-08-02 18:26:57
last_update2021-08-02 18:26:57
depth1
children0
last_payout2021-08-09 18:26:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length243
author_reputation5,148,207,793,410,053
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries
0.
accountreward.app
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id105,282,443
net_rshares0
@theguruasia ·
$WINE
properties (22)
authortheguruasia
permlinkre-mahdiyari-qx8smc
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-03 02:37:24
last_update2021-08-03 02:37:24
depth1
children1
last_payout2021-08-10 02:37:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5
author_reputation72,541,003,040,813
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,288,715
net_rshares0
@wine.bot ·
<center>
<sup>Congratulations, @theguruasia You Successfully Shared <b>0.500</b> <b>WINE</b> With @mahdiyari.</sup>
<sup>You Earned <b>0.500</b> <b>WINE</b> As Curation Reward.</sup>
<sup>You Utilized <b>5/5</b> Successful Calls.</sup>

<img src="https://images.hive.blog/DQmcvnJL2ZB48usaghCU7UC8iHgN5VLQNiaLPr7mo6fCB45/wine.png" alt="wine_logo">

---
<sup>Contact Us : [WINE Token Discord Channel](https://discord.gg/rS3KzjJDCx)</sup>
<sup>[WINE Current Market Price](https://hive-engine.com/?p=market&t=WINE) : <b>0.270</b></sup>
</center>
properties (22)
authorwine.bot
permlink20210803t023748546z
categoryhive-139531
json_metadata{"tags":["wine","token","winebot"],"app":"wine-bot/4.0","format":"markdown"}
created2021-08-03 02:37:48
last_update2021-08-03 02:37:48
depth2
children0
last_payout2021-08-10 02:37:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length553
author_reputation8,092,913,767,308
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,288,719
net_rshares0
@urun ·
$0.19
Good job!
👍  
properties (23)
authorurun
permlinkre-mahdiyari-qx8jzq
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 23:31:03
last_update2021-08-02 23:31:03
depth1
children0
last_payout2021-08-09 23:31:03
cashout_time1969-12-31 23:59:59
total_payout_value0.096 HBD
curator_payout_value0.096 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9
author_reputation94,054,151,913,937
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,286,597
net_rshares288,335,407,613
author_curate_reward""
vote details (1)
@vikisecrets ·
$0.23
Already thought Hive is running into scaling problems, because of the success of Splinterlands and the growing number of transactions. Would be interesting to test, how much load the blockchain and api servers can actually handle.
👍  
properties (23)
authorvikisecrets
permlinkre-mahdiyari-qx7tb6
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 13:55:06
last_update2021-08-02 13:55:06
depth1
children1
last_payout2021-08-09 13:55:06
cashout_time1969-12-31 23:59:59
total_payout_value0.116 HBD
curator_payout_value0.117 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length230
author_reputation1,183,201,934,179,510
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,277,803
net_rshares349,450,900,164
author_curate_reward""
vote details (1)
@jarvie ·
$0.11
@blocktrades said in a recent post that he thought his node alone could handle 12x more traffic. And i'm guessing he'll just add to it when it gets there. 

There haven't been too many full blocks but if we get there I have also heard developers say they're willing to consider speeding up the block time. So if we go from 3 seconds to 1.5 then that seems like there is even more room for transactions. 

As for peakd.com i've never heard the developer complain about us having too much traffic I guess i could ask at what point our servers would have issues with traffic. But as long as there isn't a crazy sudden spike i assume we'll be able to adapt in plenty of time.

But yes I would love to see some more specific tests and stats from people... i'm just using random things I've heard from others. 


👍  
properties (23)
authorjarvie
permlinkre-vikisecrets-qx7zwj
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-02 16:17:57
last_update2021-08-02 16:17:57
depth2
children0
last_payout2021-08-09 16:17:57
cashout_time1969-12-31 23:59:59
total_payout_value0.052 HBD
curator_payout_value0.053 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length807
author_reputation388,472,006,363,554
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,280,175
net_rshares159,405,766,376
author_curate_reward""
vote details (1)
@zaibkang · (edited)
$0.20
I really appreciate @mahdiyari and @blocktrades or all other hive blockchain developers work, few days ago I starts faceing some problems while using my @ecency app, but after updating it from Google play store, I feel the difference all problems are solved, speed of the app also increased, now I understand after reading your article what's happening in the background development, thanks again nice work keep it up 
👍  
properties (23)
authorzaibkang
permlinkre-mahdiyari-202182t23017710z
categoryhive-139531
json_metadata{"tags":["hive-139531","dev","hivedev","hive-js","dhive","hive-tx"],"app":"ecency/3.0.20-mobile","format":"markdown+html","users":["mahdiyari","blocktrades","ecency"]}
created2021-08-02 19:00:18
last_update2021-08-02 19:05:54
depth1
children0
last_payout2021-08-09 19:00:18
cashout_time1969-12-31 23:59:59
total_payout_value0.102 HBD
curator_payout_value0.102 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length418
author_reputation55,291,837,326,050
root_title"Everything can be faster on Hive - hive-js & dhive new changes"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,282,956
net_rshares304,093,926,749
author_curate_reward""
vote details (1)