From f85af010ea1eda202ff55d50a073b1934c660cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Thu, 14 Apr 2022 13:42:30 +0200 Subject: [PATCH] fixed tarantool/tendermint status management MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Eckel --- planetmint/backend/tarantool/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planetmint/backend/tarantool/query.py b/planetmint/backend/tarantool/query.py index 35eb676..d812627 100644 --- a/planetmint/backend/tarantool/query.py +++ b/planetmint/backend/tarantool/query.py @@ -179,7 +179,7 @@ def get_latest_block(connection): # TODO Here is used DESCENDING OPERATOR space = connection.space("blocks_tx") _txids = space.select(_block[2], index="block_search") _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)