You are viewing a single comment's thread from:

RE: Steem for script kiddies: paginated get_account_history calls

in #steem2 years ago

Now I tested the script and the api. As we have already discovered, the pagination is a little irritating. Because limit+1 records is returned instead of limit records, you have to be careful with the pagination... or set limit=(real)limit-1 in the request.

However, it is very confusing that the number of data records in the response should not be more than limit due to the loop termination condition.

Sort:  

For rocksdb, maybe it's here? Which (I think) goes here?

The github issue said:

Due to the lack of performance tuning of RocksDB, the current ahnode api performance is seriously insufficient.

I still don't understand why it works the way it does, though. Maybe an off by one error in this loop?

And/Or maybe this should be > instead of >= ?

I'd need to step through it line by line to understand, but I'm not that curious. ;-)

Coin Marketplace

STEEM 0.18
TRX 0.14
JST 0.030
BTC 59238.58
ETH 3176.28
USDT 1.00
SBD 2.45