All tests pass after removal of db session in filter

This commit is contained in:
lash 2022-04-23 11:29:35 +00:00
parent 1de24f8436
commit ca427ca305
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
1 changed files with 6 additions and 6 deletions

View File

@ -3,14 +3,14 @@ import logging
# external imports
import celery
from chainqueue.sql.state import (
obsolete_by_cache,
set_fubar,
)
from chainqueue.error import TxStateChangeError
from hexathon import to_int as hex_to_int
from chainlib.eth.gas import balance
from cic_eth.queue.query import get_tx_cache_local
from cic_eth.queue.state import (
obsolete_local,
set_fubar_local,
)
from chainqueue.enum import StatusBits
# local imports
@ -46,9 +46,9 @@ class StragglerFilter(SyncFilter):
try:
obsolete_by_cache(self.chain_spec, tx.hash, False)
obsolete_local(self.chain_spec, tx.hash, False)
except TxStateChangeError:
set_fubar(self.chain_spec, tx.hash, session=db_session)
set_fubar_local(self.chain_spec, tx.hash, session=db_session)
return False
s_send = celery.signature(