fixed tarantool/tendermint status management

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2022-04-14 13:42:30 +02:00
parent 8ea911ba64
commit f85af010ea

View File

@ -179,7 +179,7 @@ def get_latest_block(connection): # TODO Here is used DESCENDING OPERATOR
space = connection.space("blocks_tx") space = connection.space("blocks_tx")
_txids = space.select(_block[2], index="block_search") _txids = space.select(_block[2], index="block_search")
_txids = _txids.data _txids = _txids.data
return {"app_hash": _block[1], "height": _block[1], "transactions": [tx[0] for tx in _txids]} return {"app_hash": _block[0], "height": _block[1], "transactions": [tx[0] for tx in _txids]}
@register_query(TarantoolDB) @register_query(TarantoolDB)