You are viewing a single comment's thread from:

RE: Beem: Cannot fetch account history of early created accounts, block number estimation gives negative values

in #utopian-io6 years ago

Thanks for finding this issue. I can confirm the bug.

I already fixed beem in this commit.
I added a lower bound for the block number:

       if block_number < 1:
           block_number = 1
Sort:  

That was fast, thanks! I can confirm it's working correctly now:

# python bug_neg_blocknum.py 
{'voter': 'thecyclist', 'author': 'berniesanders', 'permlink': 're-cryptoctopus-re-crypto-econom1st-re-cryptoctopus-getting-ready-for-steem-1-0-and-the-end-of-beta-20180516t183042764z', 'weight': 800, 'trx_id': '73e00ce7bde88e86b2ed468c39ed2e31cbb23c25', 'block': 22487722, 'trx_in_block': 33, 'op_in_trx': 0, 'virtual_op': 0, 'timestamp': '2018-05-16T18:30:57', 'account': 'berniesanders', 'type': 'vote', '_id': '0c6034ce648db568e2fc1ed733c188f0595686eb', 'index': 286221}
{'voter': 'yougotflagged', 'author': 'berniesanders', 'permlink': 're-cryptoctopus-re-crypto-econom1st-re-cryptoctopus-getting-ready-for-steem-1-0-and-the-end-of-beta-20180516t183042764z', 'weight': 800, 'trx_id': '73e00ce7bde88e86b2ed468c39ed2e31cbb23c25', 'block': 22487722, 'trx_in_block': 33, 'op_in_trx': 1, 'virtual_op': 0, 'timestamp': '2018-05-16T18:30:57', 'account': 'berniesanders', 'type': 'vote', '_id': '8c22c5def2f5873698d42c53fbed9f24420cc69c', 'index': 286222}
{'voter': 'steemservices', 'author': 'berniesanders', 'permlink': 're-cryptoctopus-re-crypto-econom1st-re-cryptoctopus-getting-ready-for-steem-1-0-and-the-end-of-beta-20180516t183042764z', 'weight': 800, 'trx_id': '73e00ce7bde88e86b2ed468c39ed2e31cbb23c25', 'block': 22487722, 'trx_in_block': 33, 'op_in_trx': 2, 'virtual_op': 0, 'timestamp': '2018-05-16T18:30:57', 'account': 'berniesanders', 'type': 'vote', '_id': '7d5b58a054f562c436747173828146b4e557bc2e', 'index': 286223}
{'voter': 'thedelegator', 'author': 'berniesanders', 'permlink': 're-cryptoctopus-re-crypto-econom1st-re-cryptoctopus-getting-ready-for-steem-1-0-and-the-end-of-beta-20180516t183042764z', 'weight': 800, 'trx_id': '73e00ce7bde88e86b2ed468c39ed2e31cbb23c25', 'block': 22487722, 'trx_in_block': 33, 'op_in_trx': 3, 'virtual_op': 0, 'timestamp': '2018-05-16T18:30:57', 'account': 'berniesanders', 'type': 'vote', '_id': '4a38bb0ac99bee28cffd1b2836670cfa0eb6cba8', 'index': 286224}
{'voter': 'nextgencrypto', 'author': 'berniesanders', 'permlink': 're-cryptoctopus-re-crypto-econom1st-re-cryptoctopus-getting-ready-for-steem-1-0-and-the-end-of-beta-20180516t183042764z', 'weight': 800, 'trx_id': '73e00ce7bde88e86b2ed468c39ed2e31cbb23c25', 'block': 22487722, 'trx_in_block': 33, 'op_in_trx': 4, 'virtual_op': 0, 'timestamp': '2018-05-16T18:30:57', 'account': 'berniesanders', 'type': 'vote', '_id': '03b0eae366d90cd804777b64b09e3915b5475e6f', 'index': 286225}
{'voter': 'ngc', 'author': 'berniesanders', 'permlink': 're-cryptoctopus-re-crypto-econom1st-re-cryptoctopus-getting-ready-for-steem-1-0-and-the-end-of-beta-20180516t183042764z', 'weight': 800, 'trx_id': '73e00ce7bde88e86b2ed468c39ed2e31cbb23c25', 'block': 22487722, 'trx_in_block': 33, 'op_in_trx': 5, 'virtual_op': 0, 'timestamp': '2018-05-16T18:30:57', 'account': 'berniesanders', 'type': 'vote', '_id': '7269876f6616cfc8ef2dba41aa46a74dd2e4fea7', 'index': 286226}
{'voter': 'iflagtrash', 'author': 'berniesanders', 'permlink': 're-cryptoctopus-re-crypto-econom1st-re-cryptoctopus-getting-ready-for-steem-1-0-and-the-end-of-beta-20180516t183042764z', 'weight': 800, 'trx_id': '73e00ce7bde88e86b2ed468c39ed2e31cbb23c25', 'block': 22487722, 'trx_in_block': 33, 'op_in_trx': 6, 'virtual_op': 0, 'timestamp': '2018-05-16T18:30:57', 'account': 'berniesanders', 'type': 'vote', '_id': 'e303538389d1b9aacfa42e2511e3b80aca5e1870', 'index': 286227}
{'voter': 'engagement', 'author': 'berniesanders', 'permlink': 're-cryptoctopus-re-crypto-econom1st-re-cryptoctopus-getting-ready-for-steem-1-0-and-the-end-of-beta-20180516t183042764z', 'weight': 800, 'trx_id': '73e00ce7bde88e86b2ed468c39ed2e31cbb23c25', 'block': 22487722, 'trx_in_block': 33, 'op_in_trx': 7, 'virtual_op': 0, 'timestamp': '2018-05-16T18:30:57', 'account': 'berniesanders', 'type': 'vote', '_id': '4cc15251be94ddccfd63cc43cb71f90788df9d92', 'index': 286228}

Coin Marketplace

STEEM 0.18
TRX 0.13
JST 0.029
BTC 57883.59
ETH 3070.40
USDT 1.00
SBD 2.34