diff --git a/planetmint/backend/query.py b/planetmint/backend/query.py index 5f60c6a..c2856d8 100644 --- a/planetmint/backend/query.py +++ b/planetmint/backend/query.py @@ -84,13 +84,6 @@ def store_governance_transaction(connection, transaction): raise NotImplementedError -@singledispatch -def get_governance_transaction_by_id(connection, transaction_id): - """Get the transaction by transaction id.""" - - raise NotImplementedError - - @singledispatch def get_transaction_by_id(connection, transaction_id): """Get the transaction by transaction id.""" diff --git a/planetmint/backend/tarantool/query.py b/planetmint/backend/tarantool/query.py index 7d8ce37..8a2e619 100644 --- a/planetmint/backend/tarantool/query.py +++ b/planetmint/backend/tarantool/query.py @@ -175,14 +175,6 @@ def store_governance_transaction(connection, transaction): raise OperationDataInsertionError() -@register_query(TarantoolDBConnection) -def get_governance_transaction_by_id(connection, transaction_id): - txs = connection.run(connection.space(TARANT_TABLE_GOVERNANCE).select(transaction_id, index=TARANT_ID_SEARCH)) - if len(txs) == 0: - return None - return DbTransaction.from_tuple(txs[0]) - - @register_query(TarantoolDBConnection) def get_transaction_by_id(connection, transaction_id, table=TARANT_TABLE_TRANSACTION): txs = connection.run(connection.space(table).select(transaction_id, index=TARANT_ID_SEARCH))