Remove reserved status requirements for fubar state set

This commit is contained in:
lash 2022-04-07 11:11:45 +00:00
parent 2761e8851e
commit e5c8af1aaa
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 6 additions and 7 deletions

View File

@ -168,11 +168,10 @@ class Otx(SessionBase):
status = status_str(self.status)
SessionBase.release_session(session)
raise TxStateChangeError('FUBAR cannot be set on an entry with an error state already set ({})'.format(status))
if not self.status & StatusBits.RESERVED:
status = status_str(self.status)
SessionBase.release_session(session)
raise TxStateChangeError('FUBAR on tx that has not been RESERVED ({})'.format(status))
# if not self.status & StatusBits.RESERVED:
# status = status_str(self.status)
# SessionBase.release_session(session)
# raise TxStateChangeError('FUBAR on tx that has not been RESERVED ({})'.format(status))
self.__set_status(StatusBits.UNKNOWN_ERROR | StatusBits.FINAL, session)
self.__reset_status(StatusBits.QUEUED | StatusBits.RESERVED, session)

View File

@ -76,7 +76,7 @@ def create(chain_spec, nonce, holder_address, tx_hash, signed_tx, obsolete_prede
session.commit()
SessionBase.release_session(session)
logg.debug('queue created nonce {} from {} hash {}'.format(nonce, holder_address, tx_hash))
logg.debug('queue created nonce {} from {} hash {} tx {}'.format(nonce, holder_address, tx_hash, signed_tx))
return tx_hash

View File

@ -1,6 +1,6 @@
[metadata]
name = chainqueue
version = 0.0.6rc3
version = 0.0.6rc4
description = Generic blockchain transaction queue control
author = Louis Holbrook
author_email = dev@holbrook.no