Rehabilitate tests to new package structure

This commit is contained in:
nolash
2021-05-28 11:13:01 +02:00
parent 18a4d65784
commit 19d4e38dcf
10 changed files with 88 additions and 72 deletions

View File

@@ -95,7 +95,10 @@ def set_final(chain_spec, tx_hash, block=None, tx_index=None, fail=False, sessio
raise(e)
if block != None:
TxCache.set_final(o.tx_hash, block, tx_index, session=session)
try:
TxCache.set_final(o.tx_hash, block, tx_index, session=session)
except NotLocalTxError:
logg.debug('otx for {} does not have cache complement'.format(tx_hash))
session.commit()
@@ -115,7 +118,6 @@ def set_cancel(chain_spec, tx_hash, manual=False, session=None):
:type manual: boolean
:raises NotLocalTxError: If transaction not found in queue.
"""
session = SessionBase.bind_session(session)
o = Otx.load(tx_hash, session=session)
if o == None: