Eos: why do I get different returns on "get actions" depending on which api node I use?

Created on 12 Sep 2018  路  3Comments  路  Source: EOSIO/eos

curl -X POST https://APINODE/v1/history/get_actions -d '{"account_name": "eos.io", "pos":"-1", "offset": "-1"}'

I get different returns depanding what APINODE is.

What can be the reason?

Support

All 3 comments

This is possible because different BP may have different filter for account history. If you want a consistence result you may need to sync with mainnet using your own machine.

To expand on @taokayan's answer, you also have no visibility into when a given node enabled the history plugin and whether or not it replayed the whole blockchain when it did. There is no summary or status information available about how long the history plugin has been enabled.

It also happens when you specify "pos" and "offset" values less than zero. To get consistent results from multiple nodes, you need positive "pos" and "offset" values that match and are small enough that all nodes being queried can successfully serialize the requested data in the limited time allotted. Even then you might not get an exact match because of the aforementioned variances.

Running your own node is the only way to be certain you know the conditions under which you are operating.

thanks for advice!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jiazechen picture jiazechen  路  3Comments

IvanYakimov picture IvanYakimov  路  3Comments

hadramidah picture hadramidah  路  3Comments

guaiguaihw picture guaiguaihw  路  3Comments

congnghebitcoin picture congnghebitcoin  路  3Comments