steem-engine api history order problem for multiple txs in one block

in #steemfinex5 years ago (edited)

I've been worrying about this edge case, and it turns out that it's actually random.

For instance, in block 1896844,
https://steem-engine.rocks/b/1896844

there are two txs of @steemfinex (this is a very rare case and thank you for using it :)

when history is called, it returns the order randomly.

Same block, so timestamp is the same, so no way to distinguish. no tx order is returned, so no way to sort.

Any other way to resolve this than fetching the block?
=> my solution is adding txid as the second sorting key

Hopefully, the order will be fixed.


스팀엔진 api history가져올때 같은 블록에 한 계정 여러 트랜잭션이 있으면 history api로는 소팅할 방법이 없는 문제가 있습니다. 블록에는 순서가 할당되어있긴한데 history에서는 현재 해결이 안 됩니다.

Sort:  

.

yes, of course i can detect the situation.

and one way to resolve this by using history only is adding more sort key (txid should be enough) which is the way i'm thinking of atm. But it'd be much better if the api itself returns them consistently.

e.g., steem has transaction_num and based on https://steem-engine.rocks/b/1896844 steem-engine seems to have such a thing. then why not returning them consistently.

Loading...

Congratulations @blockchainstudio! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 5500 comments. Your next target is to reach 6000 comments.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

You can upvote this notification to help all Steem users. Learn how here!

Hi @blockchainstudio!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 6.405 which ranks you at #193 across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 103 contributions, your post is ranked at #16.

Evaluation of your UA score:
  • You've built up a nice network.
  • The readers like your work!
  • Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!

Feel free to join our @steem-ua Discord server

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 62763.51
ETH 2579.20
USDT 1.00
SBD 2.72